From 84aaaedfa6295ebe1f24b114b35ab0f53c138bbd Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 2 Jan 2015 16:32:03 -0200 Subject: [PATCH] build-sys: rename cflags/ldflags variable Not all of them are for warnings or gc. --- Makefile.am | 4 ++-- configure.ac | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 13ed37c9..b9fc8ea9 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 f28bfedf..3be31982 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 -- 2.47.2