From 9e7adc3ae1133fa08a468768a490812299fad030 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 19 Mar 2012 13:20:43 -0300 Subject: build-sys: separate ldflags from cflags --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'configure.ac') 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 -- cgit v1.2.3-54-g00ecf