summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-10-26 11:50:31 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-10-26 11:50:31 +0000
commit5935ef75ba99b2c95560f4dccdade2947325b913 (patch)
treee177ed0c0e4ea6eeca6e5bc02af0030040e48449 /configure
parentbf1b56013a68aaad3800e2c1b4c2d8ea6ec019a9 (diff)
downloadskalibs-5935ef75ba99b2c95560f4dccdade2947325b913.tar.xz
Separate sections for smaller static binaries (thanks Denys Vlasenko)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 09b91d7..403bf98 100755
--- a/configure
+++ b/configure
@@ -332,7 +332,11 @@ tryflag CPPFLAGS_AUTO -Werror=implicit-function-declaration
tryflag CPPFLAGS_AUTO -Werror=implicit-int
tryflag CPPFLAGS_AUTO -Werror=pointer-sign
tryflag CPPFLAGS_AUTO -Werror=pointer-arith
+tryflag CFLAGS_AUTO -ffunction-sections
+tryflag CFLAGS_AUTO -fdata-sections
+tryldflag LDFLAGS_AUTO -Wl,--sort-section=alignment
+tryldflag LDFLAGS_AUTO -Wl,--sort-common
if $shared ; then
tryldflag LDFLAGS_AUTO -Wl,--hash-style=both
fi