From: Lucas De Marchi Date: Fri, 2 Jan 2015 18:32:03 +0000 (-0200) Subject: build-sys: rename cflags/ldflags variable X-Git-Tag: v20~83 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fkmod.git;a=commitdiff_plain;h=84aaaedfa6295ebe1f24b114b35ab0f53c138bbd build-sys: rename cflags/ldflags variable Not all of them are for warnings or gc. --- diff --git a/Makefile.am b/Makefile.am index 13ed37c..b9fc8ea 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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) \ diff --git a/configure.ac b/configure.ac index f28bfed..3be3198 100644 --- a/configure.ac +++ b/configure.ac @@ -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