summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-03-19 13:20:43 -0300
committerLennart Poettering <lennart@poettering.net>2012-03-26 21:02:29 +0200
commit9e7adc3ae1133fa08a468768a490812299fad030 (patch)
tree75f50d903c2c5177c6b66bcd45e16a4c9ab2e8a6 /configure.ac
parenteb2e280f9c59b66965c9316eadc4c113a13ca744 (diff)
build-sys: separate ldflags from cflags
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index ac56bc7176..9a9a789235 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,10 +102,13 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
-fno-strict-aliasing \
-fvisibility=hidden \
-ffunction-sections \
- -fdata-sections \
+ -fdata-sections])
+AC_SUBST([WARNINGFLAGS], $with_cflags)
+
+CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
-Wl,--as-needed \
-Wl,--gc-sections])
-AC_SUBST([WARNINGFLAGS], $with_cflags)
+AC_SUBST([GCLDFLAGS], $with_ldflags)
LT_PREREQ(2.2)
LT_INIT