diff options
author | Nathan Froyd <froydnj@mozilla.com> | 2014-05-19 17:44:29 -0700 |
---|---|---|
committer | Nathan Froyd <froydnj@mozilla.com> | 2014-05-19 17:44:29 -0700 |
commit | 29a1894f90dd70d231cf2332715db67bfd5071e0 (patch) | |
tree | 514f4f2330574ef49b743697de0653ed1483a28b /coreconf/Linux.mk | |
parent | 88ca795c1f7e390d32cd50e92196639295a7b0f0 (diff) | |
download | nss-hg-29a1894f90dd70d231cf2332715db67bfd5071e0.tar.gz |
Bug 1011229: Compile with -ffunction-sections -fdata-sections and link
with -Wl,--gc-sections on Linux. r=wtc.
Diffstat (limited to 'coreconf/Linux.mk')
-rw-r--r-- | coreconf/Linux.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreconf/Linux.mk b/coreconf/Linux.mk index 36995ba8b..6567f25fd 100644 --- a/coreconf/Linux.mk +++ b/coreconf/Linux.mk @@ -130,7 +130,7 @@ ifeq ($(USE_PTHREADS),1) OS_PTHREAD = -lpthread endif -OS_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 -ffunction-sections -fdata-sections -DLINUX -Dlinux -DHAVE_STRERROR OS_LIBS = $(OS_PTHREAD) -ldl -lc ifdef USE_PTHREADS @@ -140,7 +140,7 @@ endif ARCH = linux DSO_CFLAGS = -fPIC -DSO_LDOPTS = -shared $(ARCHFLAG) +DSO_LDOPTS = -shared $(ARCHFLAG) -Wl,--gc-sections # The linker on Red Hat Linux 7.2 and RHEL 2.1 (GNU ld version 2.11.90.0.8) # incorrectly reports undefined references in the libraries we link with, so # we don't use -z defs there. |