commit 5935ef75ba99b2c95560f4dccdade2947325b913
parent bf1b56013a68aaad3800e2c1b4c2d8ea6ec019a9
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Mon, 26 Oct 2015 11:50:31 +0000
Separate sections for smaller static binaries (thanks Denys Vlasenko)
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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