From 073949aa95eaf7f99af201e1174d7a7b7f65d5fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Tue, 22 Nov 2016 03:53:24 +0100 Subject: build/pkg.build: export ${CFLAGS_FOR_BUILD} before configure when using autoconf. --- build/pkg.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build') 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}}"; -- cgit v1.2.3