From: Nicolas Thill Date: Mon, 3 Sep 2007 08:44:08 +0000 (+0000) Subject: tweak Build/Compile/PyMod: add CPPFLAGS, allow caller to override any of the default... X-Git-Tag: 8.09_rc1~2814 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e5e03321f9e942f75b8b150dc0bbdaba6b1c0c9b;p=openwrt%2Fsvn-archive%2Fopenwrt.git tweak Build/Compile/PyMod: add CPPFLAGS, allow caller to override any of the default *FLAGS, indent SVN-Revision: 8590 --- diff --git a/include/package.mk b/include/package.mk index 074c7aded1..0c8886c784 100644 --- a/include/package.mk +++ b/include/package.mk @@ -126,12 +126,14 @@ define Build/Compile endef define Build/Compile/PyMod - cd $(PKG_BUILD_DIR); \ - $(1) \ - CFLAGS='-I$(STAGING_DIR)/usr/include' \ - LDFLAGS='$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib' \ - $(STAGING_DIR)/usr/bin/hostpython ./setup.py $(2) \ - --prefix=$(PKG_INSTALL_DIR)/usr + ( cd $(PKG_BUILD_DIR); \ + CFLAGS="$(TARGET_CFLAGS)" \ + CPPFLAGS="$(TARGET_CPPFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ + $(1) \ + $(STAGING_DIR)/usr/bin/hostpython ./setup.py $(2) \ + --prefix="$(PKG_INSTALL_DIR)/usr" \ + ) endef $(PACKAGE_DIR):