summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-09-20 11:56:19 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-09-20 11:56:19 (GMT)
commit0f5187c1948760df191d28f7a24fa6ebf8abd79a (patch)
treef995bfe6580be826c7d7db788a044255e47c3801
parent9fd02c8887285ae8c40e045c65412d504e997d0d (diff)
downloadmxe-0f5187c1948760df191d28f7a24fa6ebf8abd79a.zip
mxe-0f5187c1948760df191d28f7a24fa6ebf8abd79a.tar.gz
mxe-0f5187c1948760df191d28f7a24fa6ebf8abd79a.tar.bz2
fix for systems where wine confuses the cross-compiling detection of ./configure
-rw-r--r--src/gcc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gcc.mk b/src/gcc.mk
index aff2499..33512c5 100644
--- a/src/gcc.mk
+++ b/src/gcc.mk
@@ -85,6 +85,7 @@ define $(PKG)_BUILD
$(INSTALL) -m664 '$(1)/$(gcc-pthreads_SUBDIR)/sched.h' '$(PREFIX)/$(TARGET)/include/'
$(INSTALL) -m664 '$(1)/$(gcc-pthreads_SUBDIR)/semaphore.h' '$(PREFIX)/$(TARGET)/include/'
# build libgomp
+ $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/$(gcc-core_SUBDIR)/libgomp/configure'
mkdir '$(1)/build/$(TARGET)/libgomp'
cd '$(1)/build/$(TARGET)/libgomp' && '$(1)/$(gcc-core_SUBDIR)/libgomp/configure' \
$(gcc_CONFIGURE_OPTIONS) \