tweak Build/Compile/PyMod: add CPPFLAGS, allow caller to override any of the default *FLAGS, indent
SVN-Revision: 8590
This commit is contained in:
parent
d8174a0398
commit
e5e03321f9
1 changed files with 8 additions and 6 deletions
|
@ -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); \
|
||||||
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
||||||
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
$(1) \
|
$(1) \
|
||||||
CFLAGS='-I$(STAGING_DIR)/usr/include' \
|
|
||||||
LDFLAGS='$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib' \
|
|
||||||
$(STAGING_DIR)/usr/bin/hostpython ./setup.py $(2) \
|
$(STAGING_DIR)/usr/bin/hostpython ./setup.py $(2) \
|
||||||
--prefix=$(PKG_INSTALL_DIR)/usr
|
--prefix="$(PKG_INSTALL_DIR)/usr" \
|
||||||
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(PACKAGE_DIR):
|
$(PACKAGE_DIR):
|
||||||
|
|
Loading…
Reference in a new issue