mirror of
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
synced 2025-01-22 19:23:24 +08:00
build-sys: rename cflags/ldflags variable
Not all of them are for warnings or gc.
This commit is contained in:
parent
b35bf2a11c
commit
84aaaedfa6
@ -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) \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user