summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2008-08-09 19:39:42 +0000
committerMichael Lauer <mickey@vanille-media.de>2008-08-09 19:39:42 +0000
commit8f160abad51b6eba620d6ddaf3a1ebc7ee1bf2da (patch)
tree176f0fe938c7220fd0098cfbb619e0c69ea9d0c3 /classes
parent565cbef5b2c8a593cf7a66be2214d60d2107d29b (diff)
distutils.bbclass: allow specifying arguments to the build command
Diffstat (limited to 'classes')
-rw-r--r--classes/distutils.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass
index fa34565eaf..a35ca27bd4 100644
--- a/classes/distutils.bbclass
+++ b/classes/distutils.bbclass
@@ -1,5 +1,6 @@
inherit distutils-base
+DISTUTILS_BUILD_ARGS ?= ""
DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}"
DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${layout_prefix} \
--install-data=${STAGING_DATADIR}"
@@ -8,7 +9,7 @@ DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \
distutils_do_compile() {
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
- ${STAGING_BINDIR_NATIVE}/python setup.py build || \
+ ${STAGING_BINDIR_NATIVE}/python setup.py build ${DISTUTILS_BUILD_ARGS} || \
oefatal "python setup.py build_ext execution failed."
}