diff options
author | Nicolas Thill <nico@openwrt.org> | 2007-09-03 08:44:08 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2007-09-03 08:44:08 +0000 |
commit | 05a46c716e24adb817dd5e41ebdb0308ec6b78b2 (patch) | |
tree | cf8ed6e0c95733974987605bc4d710937142f59c /include/package.mk | |
parent | cec59180ed6588bd0e4abfeb9f1d6bf105cabe04 (diff) | |
download | upstream-05a46c716e24adb817dd5e41ebdb0308ec6b78b2.tar.gz upstream-05a46c716e24adb817dd5e41ebdb0308ec6b78b2.tar.bz2 upstream-05a46c716e24adb817dd5e41ebdb0308ec6b78b2.zip |
tweak Build/Compile/PyMod: add CPPFLAGS, allow caller to override any of the default *FLAGS, indent
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8590 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/package.mk')
-rw-r--r-- | include/package.mk | 14 |
1 files changed, 8 insertions, 6 deletions
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): |