Replace ENV make variable with MKENV.
ENV variable conflicts with Environment Modules. Signed-off-by: Oleg Girko <ol@infoserver.lv> Fixes #3535
This commit is contained in:
parent
8a8aa85726
commit
c589660182
|
@ -145,7 +145,7 @@ Makefile reconfigure: $(MAKEFILE_LIST)
|
||||||
#
|
#
|
||||||
Makefile reconfigure: env.sh $(SHARED_LIBS)
|
Makefile reconfigure: env.sh $(SHARED_LIBS)
|
||||||
@$(MSG_CONFIG)$(TARGET)
|
@$(MSG_CONFIG)$(TARGET)
|
||||||
$(VERBOSE)source env.sh && $(CONFIGURE_SCRIPT) $(ENV) $(CONFIGURE_ARGS) $(CONFIGURE_OUTPUT_FILTER)
|
$(VERBOSE)source env.sh && $(CONFIGURE_SCRIPT) $(MKENV) $(CONFIGURE_ARGS) $(CONFIGURE_OUTPUT_FILTER)
|
||||||
|
|
||||||
env.sh:
|
env.sh:
|
||||||
$(VERBOSE)rm -f $@
|
$(VERBOSE)rm -f $@
|
||||||
|
|
|
@ -7,9 +7,9 @@ CONFIGURE_ARGS = --disable-werror \
|
||||||
#
|
#
|
||||||
# Pass CFLAGS and friends to the invokation of 'make' because
|
# Pass CFLAGS and friends to the invokation of 'make' because
|
||||||
# binutils execute 2nd-level configure scripts, which need
|
# binutils execute 2nd-level configure scripts, which need
|
||||||
# the 'ENV' as well.
|
# the 'MKENV' as well.
|
||||||
#
|
#
|
||||||
MAKE_ENV = $(ENV)
|
MAKE_ENV = $(MKENV)
|
||||||
|
|
||||||
PKG_DIR = $(call select_from_ports,binutils)/src/noux-pkg/binutils
|
PKG_DIR = $(call select_from_ports,binutils)/src/noux-pkg/binutils
|
||||||
|
|
||||||
|
|
|
@ -22,17 +22,17 @@ CONFIGURE_ARGS = --program-prefix=$(PROGRAM_PREFIX) \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
--disable-nls
|
--disable-nls
|
||||||
|
|
||||||
ENV += host_configargs="$(HOST_CONFIG_ARGS)" \
|
MKENV += host_configargs="$(HOST_CONFIG_ARGS)" \
|
||||||
target_configargs="$(TARGET_CONFIG_ARGS)"
|
target_configargs="$(TARGET_CONFIG_ARGS)"
|
||||||
|
|
||||||
ENV += CC_FOR_TARGET=$(CC) CXX_FOR_TARGET=$(CXX) GCC_FOR_TARGET=$(CC) CPP_FOR_TARGET="$(CC) -E" \
|
MKENV += CC_FOR_TARGET=$(CC) CXX_FOR_TARGET=$(CXX) GCC_FOR_TARGET=$(CC) CPP_FOR_TARGET="$(CC) -E" \
|
||||||
LD_FOR_TARGET=$(LD) AS_FOR_TARGET=$(AS) AR_FOR_TARGET=$(AR)
|
LD_FOR_TARGET=$(LD) AS_FOR_TARGET=$(AS) AR_FOR_TARGET=$(AR)
|
||||||
|
|
||||||
# libgcc does not evaluate CPPFLAGS_FOR_TARGET, so everything is put into CFLAGS_FOR_TARGET here
|
# libgcc does not evaluate CPPFLAGS_FOR_TARGET, so everything is put into CFLAGS_FOR_TARGET here
|
||||||
ENV += CFLAGS_FOR_TARGET='-I$(BASE_DIR)/../../tool -DUSE_PT_GNU_EH_FRAME -Dinhibit_libc -fPIC'
|
MKENV += CFLAGS_FOR_TARGET='-I$(BASE_DIR)/../../tool -DUSE_PT_GNU_EH_FRAME -Dinhibit_libc -fPIC'
|
||||||
|
|
||||||
# libsupc++
|
# libsupc++
|
||||||
ENV += CXXFLAGS_FOR_TARGET='-fPIC'
|
MKENV += CXXFLAGS_FOR_TARGET='-fPIC'
|
||||||
|
|
||||||
MAKE_ENV += GENODE="yes"
|
MAKE_ENV += GENODE="yes"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue