Browse Source

- move variables

master
vanhofen 3 years ago
parent
commit
d88e44125c
  1. 2
      make/buildsystem-helpers.mk
  2. 14
      package/pkg-autotools.mk
  3. 12
      package/pkg-generic.mk

2
make/buildsystem-helpers.mk

@ -19,7 +19,7 @@ endef
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# clean up # clean-up
define CLEANUP define CLEANUP
$(Q)( \ $(Q)( \
if [ "$($(PKG)_DIR)" ]; then \ if [ "$($(PKG)_DIR)" ]; then \

14
package/pkg-autotools.mk

@ -90,8 +90,20 @@ endef
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HOST_CONFIGURE_ENVIRONMENT = \
CC="$(HOSTCC)" \
GCC="$(HOSTCC)" \
CPP="$(HOSTCPP)" \
CXX="$(HOSTCXX)" \
LD="$(HOSTLD)" \
AR="$(HOSTAR)" \
AS="$(HOSTAS)" \
NM="$(HOSTNM)" \
OBJCOPY="$(HOSTOBJCOPY)" \
RANLIB="$(HOSTRANLIB)"
HOST_CONFIGURE_ENV = \ HOST_CONFIGURE_ENV = \
$(HOST_MAKE_OPTS) \ $(HOST_CONFIGURE_ENVIRONMENT) \
CFLAGS="$(HOST_CFLAGS)" \ CFLAGS="$(HOST_CFLAGS)" \
CPPFLAGS="$(HOST_CPPFLAGS)" \ CPPFLAGS="$(HOST_CPPFLAGS)" \
CXXFLAGS="$(HOST_CXXFLAGS)" \ CXXFLAGS="$(HOST_CXXFLAGS)" \

12
package/pkg-generic.mk

@ -43,18 +43,6 @@ endef
HOST_MAKE_ENV = HOST_MAKE_ENV =
HOST_MAKE_OPTS = \
CC="$(HOSTCC)" \
GCC="$(HOSTCC)" \
CPP="$(HOSTCPP)" \
CXX="$(HOSTCXX)" \
LD="$(HOSTLD)" \
AR="$(HOSTAR)" \
AS="$(HOSTAS)" \
NM="$(HOSTNM)" \
OBJCOPY="$(HOSTOBJCOPY)" \
RANLIB="$(HOSTRANLIB)"
define HOST_MAKE define HOST_MAKE
@$(call MESSAGE,"Compiling") @$(call MESSAGE,"Compiling")
$(foreach hook,$($(PKG)_PRE_COMPILE_HOOKS),$(call $(hook))$(sep)) $(foreach hook,$($(PKG)_PRE_COMPILE_HOOKS),$(call $(hook))$(sep))

Loading…
Cancel
Save