Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Aug 2010 12:35:01 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210731 - head/lib/libc
Message-ID:  <201008011235.o71CZ1tm002682@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpaulo
Date: Sun Aug  1 12:35:01 2010
New Revision: 210731
URL: http://svn.freebsd.org/changeset/base/210731

Log:
  Disable all warnings when building gdtoa. This allows building libc with
  clang.
  The general idea is that the vendor will not accept our compilation
  patches and so disabling the warnings is the best way to go as it makes
  future imports bearable.
  
  Submitted by:	Dimitry Andric <dimitry at andric.com>
  Discussed with:	das

Modified:
  head/lib/libc/Makefile

Modified: head/lib/libc/Makefile
==============================================================================
--- head/lib/libc/Makefile	Sun Aug  1 12:10:32 2010	(r210730)
+++ head/lib/libc/Makefile	Sun Aug  1 12:35:01 2010	(r210731)
@@ -128,7 +128,7 @@ libkern.${MACHINE_ARCH}:: ${KMSRCS}
 .include <bsd.lib.mk>
 
 # Disable warnings in contributed sources.
-CWARNFLAGS:=	${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/}
+CWARNFLAGS:=	${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/}
 # XXX For now, we don't allow libc to be compiled with
 # -fstack-protector-all because it breaks rtld.  We may want to make a librtld
 # in the future to circumvent this.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008011235.o71CZ1tm002682>