diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-10-26 11:50:31 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-10-26 11:50:31 +0000 |
commit | 5935ef75ba99b2c95560f4dccdade2947325b913 (patch) | |
tree | e177ed0c0e4ea6eeca6e5bc02af0030040e48449 | |
parent | bf1b56013a68aaad3800e2c1b4c2d8ea6ec019a9 (diff) | |
download | skalibs-5935ef75ba99b2c95560f4dccdade2947325b913.tar.xz |
Separate sections for smaller static binaries (thanks Denys Vlasenko)
-rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |