X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/205e89a75abc6d44fe82c7d76daf5db94793bc55..c0ade48327ba560509bce52b7e22b2225dd50475:/include/package-defaults.mk?ds=sidebyside diff --git a/include/package-defaults.mk b/include/package-defaults.mk index 491e401f8..75442925f 100644 --- a/include/package-defaults.mk +++ b/include/package-defaults.mk @@ -50,11 +50,13 @@ endef Build/Patch:=$(Build/Patch/Default) ifneq ($(strip $(PKG_UNPACK)),) define Build/Prepare/Default - $(SH_FUNC) $(PKG_UNPACK) + $(PKG_UNPACK) $(Build/Patch) endef endif +EXTRA_CXXFLAGS = $(EXTRA_CFLAGS) + CONFIGURE_PREFIX:=/usr CONFIGURE_ARGS = \ --target=$(GNU_TARGET_NAME) \ @@ -79,7 +81,7 @@ CONFIGURE_ARGS = \ CONFIGURE_VARS = \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \ - CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \ + CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CFLAGS)" \ CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \ @@ -104,7 +106,7 @@ endef MAKE_VARS = \ CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \ - CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \ + CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" MAKE_FLAGS = \