build-sys: separate ldflags from cflags

This commit is contained in:
Lucas De Marchi 2012-03-19 13:20:43 -03:00 committed by Lennart Poettering
parent eb2e280f9c
commit 9e7adc3ae1
2 changed files with 6 additions and 2 deletions

View File

@ -107,6 +107,7 @@ AM_CPPFLAGS = \
-I $(top_srcdir)/src/systemd
AM_CFLAGS = $(WARNINGFLAGS)
AM_LDFLAGS = $(GCLDFLAGS)
if TARGET_GENTOO
AM_CPPFLAGS += \

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