build-sys: rename cflags/ldflags variable

Not all of them are for warnings or gc.
This commit is contained in:
Lucas De Marchi 2015-01-02 16:32:03 -02:00
parent b35bf2a11c
commit 84aaaedfa6
2 changed files with 4 additions and 4 deletions

View File

@ -20,8 +20,8 @@ AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
${zlib_CFLAGS}
AM_CFLAGS = $(WARNINGFLAGS)
AM_LDFLAGS = $(GCLDFLAGS)
AM_CFLAGS = $(OUR_CFLAGS)
AM_LDFLAGS = $(OUR_LDFLAGS)
SED_PROCESS = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \

View File

@ -204,13 +204,13 @@ CC_CHECK_FLAGS_APPEND(with_cflags, [CFLAGS], [\
-fvisibility=hidden \
-ffunction-sections \
-fdata-sections])
AC_SUBST([WARNINGFLAGS], $with_cflags)
AC_SUBST([OUR_CFLAGS], $with_cflags)
CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [ \
-Wl,--as-needed \
-Wl,--gc-sections])
AC_SUBST([GCLDFLAGS], $with_ldflags)
AC_SUBST([OUR_LDFLAGS], $with_ldflags)
#####################################################################
# Generate files from *.in