summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 2e8c05a5..bc8a1a2b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -177,8 +177,9 @@ dnl support function sections
dnl
PA_ARG_ENABLED([sections],
[compile with function/data section support],
- [PA_ADD_CFLAGS([-ffunction-sections]),
- PA_ADD_CFLAGS([-fdata-sections])],
+ [PA_ADD_CLDFLAGS([-ffunction-sections])
+ PA_ADD_CLDFLAGS([-fdata-sections])
+ PA_ADD_CLDFLAGS([-Wl,--gc-sections])],
[])
dnl
dnl support LTO