diff options
author | Wan-Teh Chang <wtc@google.com> | 2014-03-05 15:16:51 -0800 |
---|---|---|
committer | Wan-Teh Chang <wtc@google.com> | 2014-03-05 15:16:51 -0800 |
commit | 5be1326121c3f73f6691126945404bbdc91e2fc7 (patch) | |
tree | 788dbac10735f73322d42e3b51bd7784345946a8 /coreconf/Linux.mk | |
parent | e94aa3efd91bdc5c16cbd0447937803a98d0ae6a (diff) | |
download | nss-hg-5be1326121c3f73f6691126945404bbdc91e2fc7.tar.gz |
Bug 972450: Don't compile NSS with any *_SOURCE macros defined. r=kaie.
Diffstat (limited to 'coreconf/Linux.mk')
-rw-r--r-- | coreconf/Linux.mk | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/coreconf/Linux.mk b/coreconf/Linux.mk index 9ceff1d71..36995ba8b 100644 --- a/coreconf/Linux.mk +++ b/coreconf/Linux.mk @@ -130,12 +130,7 @@ ifeq ($(USE_PTHREADS),1) OS_PTHREAD = -lpthread endif -# See bug 537829, in particular comment 23. -# Place -ansi and *_SOURCE before $(DSO_CFLAGS) so DSO_CFLAGS can override -# -ansi on platforms like Android where the system headers are C99 and do -# not build with -ansi. -STANDARDS_CFLAGS = -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -OS_CFLAGS = $(STANDARDS_CFLAGS) $(DSO_CFLAGS) $(OS_REL_CFLAGS) $(ARCHFLAG) -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR +OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) $(ARCHFLAG) -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR OS_LIBS = $(OS_PTHREAD) -ldl -lc ifdef USE_PTHREADS |