tweak Build/Compile/PyMod: add CPPFLAGS, allow caller to override any of the default...
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 3 Sep 2007 08:44:08 +0000 (08:44 +0000)
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 3 Sep 2007 08:44:08 +0000 (08:44 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8590 3c298f89-4303-0410-b956-a3cf2f4a3e73

include/package.mk

index 074c7ad..0c8886c 100644 (file)
@@ -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):
This page took 0.02657 seconds and 4 git commands to generate.