summaryrefslogtreecommitdiff
path: root/recipes/mc
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2010-01-07 21:51:47 +0000
committerutx@penguin.cz <utx@penguin.cz>2010-01-07 21:51:47 +0000
commit5c9878edf28117ed1a2e976bb98797f9b6f506e6 (patch)
tree10d991f161a02d738da56a02fb87cfb61d75cab4 /recipes/mc
parentffa2af84261d4330b577373153bec96084065a02 (diff)
mc: Properly pass *_FOR_BUILD variables.
Diffstat (limited to 'recipes/mc')
-rw-r--r--recipes/mc/mc.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes/mc/mc.inc b/recipes/mc/mc.inc
index f7db53ffd0..24ea3944c0 100644
--- a/recipes/mc/mc.inc
+++ b/recipes/mc/mc.inc
@@ -17,6 +17,7 @@ ac_cv_path_PERL=${bindir}/perl \
ac_cv_path_ZIP=${bindir}/zip \
ac_cv_path_UNZIP=${bindir}/unzip \
"
+EXTRA_OEMAKE = 'GLIB_CFLAGS_FOR_BUILD="$GLIB_CFLAGS_FOR_BUILD" GLIB_LIBS_FOR_BUILD="$GLIB_LIBS_FOR_BUILD" CC_FOR_BUILD="$CC_FOR_BUILD"'
PACKAGES += "${PN}-extfs ${PN}-hilite"
FILES_${PN} = "${bindir}/ ${libexecdir}/mc ${datadir}/mc/*.charsets ${datadir}/mc/*.ext ${datadir}/mc/*.hint ${datadir}/mc/*.hlp ${datadir}/mc/*.lib ${datadir}/mc/*.menu ${datadir}/mc/*.rc ${datadir}/mc/bin /etc/profile.d"
@@ -33,8 +34,10 @@ export CC_FOR_BUILD = "${BUILD_CC}"
export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
export LD_FOR_BUILD = "${BUILD_CC}"
do_compile_prepend() {
- export GLIB_CFLAGS_FOR_BUILD="`${STAGING_BINDIR_NATIVE}/pkg-config --cflags glib-2.0`"
- export GLIB_LIBS_FOR_BUILD="`${STAGING_BINDIR_NATIVE}/pkg-config --libs glib-2.0`"
+ # FIXME: Ugly! Should be done globally with respect to the host system (in classes) instead of NATIVE_PKGCONFIG_PATH:
+ export HOST_PKG_CONFIG_PATH=
+ export GLIB_CFLAGS_FOR_BUILD="`PKG_CONFIG_PATH="$HOST_PKG_CONFIG_PATH" PKG_CONFIG_SYSROOT_DIR="" pkg-config --cflags glib-2.0`"
+ export GLIB_LIBS_FOR_BUILD="`PKG_CONFIG_PATH="$HOST_PKG_CONFIG_PATH" PKG_CONFIG_SYSROOT_DIR="" pkg-config --libs glib-2.0`"
}
do_install_append() {