summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-11-22 03:53:24 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-11-22 04:38:06 +0100
commit073949aa95eaf7f99af201e1174d7a7b7f65d5fe (patch)
treef1906bfde2d3900e3eec2d466b97652cf418efb6 /build
parent413df39073ee4f58aa007e3908f7c01bc967b3dd (diff)
downloadmidipix_build-073949aa95eaf7f99af201e1174d7a7b7f65d5fe.tar.bz2
midipix_build-073949aa95eaf7f99af201e1174d7a7b7f65d5fe.tar.xz
build/pkg.build: export ${CFLAGS_FOR_BUILD} before configure when using autoconf.
Diffstat (limited to 'build')
-rw-r--r--build/pkg.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/pkg.build b/build/pkg.build
index c7300df8..bcc6c20b 100644
--- a/build/pkg.build
+++ b/build/pkg.build
@@ -123,6 +123,9 @@ else
export CC=${PKG_TARGET}-gcc;
export RANLIB=${PKG_TARGET}-ranlib;
fi;
+if [ -x ${PKG_CONFIGURE} ]; then
+ export CFLAGS_FOR_BUILD="${HOST_TOOLCHAIN_CFLAGS_CONFIGURE_DEFAULT}";
+fi;
if [ -x ${PKG_CONFIGURE} ]\
&& ! is_build_script_done configure; then
if test_cmd pkg_${PKG_NAME}_configure; then
@@ -163,6 +166,7 @@ if ! is_build_script_done build; then
${PKG_MAKEFLAGS_BUILD_EXTRA} \
AR=${AR} ${__no_autoconf:+CC=${CC}} RANLIB=${RANLIB} \
"${PKG_CFLAGS_BUILD:+CFLAGS=${PKG_CFLAGS_BUILD}}" \
+ "${CFLAGS_FOR_BUILD:+CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD}}" \
"${PKG_CFLAGS_BUILD_EXTRA:+CFLAGS+=${PKG_CFLAGS_BUILD_EXTRA}}" \
"${PKG_LDFLAGS_BUILD:+LDFLAGS=${PKG_LDFLAGS_BUILD}}" \
"${PKG_LDFLAGS_BUILD_EXTRA:+LDFLAGS+=${PKG_LDFLAGS_BUILD_EXTRA}}";