build-sys: separate ldflags from cflags

This commit is contained in:
Lucas De Marchi
2012-03-26 21:02:29 +02:00
committed by Lennart Poettering
parent eb2e280f9c
commit 9e7adc3ae1
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -107,6 +107,7 @@ AM_CPPFLAGS = \
-I $(top_srcdir)/src/systemd
AM_CFLAGS = $(WARNINGFLAGS)
AM_LDFLAGS = $(GCLDFLAGS)
if TARGET_GENTOO
AM_CPPFLAGS += \
+5 -2
View File
@@ -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