1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 04:26:16 +02:00

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
This commit is contained in:
nico 2007-09-03 08:44:08 +00:00
parent 4dcc99e756
commit 0a07865503

View File

@ -126,12 +126,14 @@ define Build/Compile
endef endef
define Build/Compile/PyMod define Build/Compile/PyMod
cd $(PKG_BUILD_DIR); \ ( cd $(PKG_BUILD_DIR); \
$(1) \ CFLAGS="$(TARGET_CFLAGS)" \
CFLAGS='-I$(STAGING_DIR)/usr/include' \ CPPFLAGS="$(TARGET_CPPFLAGS)" \
LDFLAGS='$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib' \ LDFLAGS="$(TARGET_LDFLAGS)" \
$(STAGING_DIR)/usr/bin/hostpython ./setup.py $(2) \ $(1) \
--prefix=$(PKG_INSTALL_DIR)/usr $(STAGING_DIR)/usr/bin/hostpython ./setup.py $(2) \
--prefix="$(PKG_INSTALL_DIR)/usr" \
)
endef endef
$(PACKAGE_DIR): $(PACKAGE_DIR):