diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-08-01 12:35:01 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-08-01 12:35:01 +0000 |
commit | 176b515672593c00c04c3e9d3f6c40940ff6be30 (patch) | |
tree | 504d2067b49f6355751e1974dd83f729f416eda3 /lib/libc | |
parent | af7bf3c732e5ae3fc88b353ee90a34776d1844fa (diff) | |
download | FreeBSD-src-176b515672593c00c04c3e9d3f6c40940ff6be30.zip FreeBSD-src-176b515672593c00c04c3e9d3f6c40940ff6be30.tar.gz |
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
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 527a5bb..9f70330 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -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. |