summaryrefslogtreecommitdiffstats
path: root/src/glib.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-03-08 13:41:47 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-03-08 13:41:47 (GMT)
commitee3456c369a600c3f734ba87e510bed1c26e55a8 (patch)
treee96d31673476b99076956ee8e9b3a3f1b63d6939 /src/glib.mk
parent6d7ac6561e724c72365dcc59ecfbd03903c60f11 (diff)
downloadmxe-ee3456c369a600c3f734ba87e510bed1c26e55a8.zip
mxe-ee3456c369a600c3f734ba87e510bed1c26e55a8.tar.gz
mxe-ee3456c369a600c3f734ba87e510bed1c26e55a8.tar.bz2
portability fix for MacOS X in package glib: set CXX explicitly
For some strange reason, glib's configure script initializes CXX with "c++" instead of the cross C++ compiler. This usually does no harm, because glib doesn't use the C++ compiler. However, it poisons libtool's compiler lib search paths. This also usually does no harm, except on MacOS X where it causes libtool to link against /usr/lib/libiconv.dylib, which makes the cross build fail.
Diffstat (limited to 'src/glib.mk')
-rw-r--r--src/glib.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glib.mk b/src/glib.mk
index 0f19bf6..f026638 100644
--- a/src/glib.mk
+++ b/src/glib.mk
@@ -53,6 +53,7 @@ define $(PKG)_BUILD
--with-threads=win32 \
--with-pcre=system \
--with-libiconv=gnu \
+ CXX='$(TARGET)-c++' \
PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef