mirror of
https://github.com/systemd/systemd.git
synced 2024-11-25 03:03:34 +08:00
build-sys: separate ldflags from cflags
This commit is contained in:
parent
eb2e280f9c
commit
9e7adc3ae1
@ -107,6 +107,7 @@ AM_CPPFLAGS = \
|
||||
-I $(top_srcdir)/src/systemd
|
||||
|
||||
AM_CFLAGS = $(WARNINGFLAGS)
|
||||
AM_LDFLAGS = $(GCLDFLAGS)
|
||||
|
||||
if TARGET_GENTOO
|
||||
AM_CPPFLAGS += \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user