summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-12-20 12:34:05 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-12-20 12:34:05 (GMT)
commit3b73c462837ede106d16de8b7734b6b582c332c6 (patch)
tree298a6962beafc18ae25f79ef9925e198acb1d4bb
parentf95a0256cfb45909bae3aee51fc9a9165461185b (diff)
downloadmxe-3b73c462837ede106d16de8b7734b6b582c332c6.zip
mxe-3b73c462837ede106d16de8b7734b6b582c332c6.tar.gz
mxe-3b73c462837ede106d16de8b7734b6b582c332c6.tar.bz2
fix for systems where wine confuses the cross-compiling detection of ./configure
-rw-r--r--src/freetds.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/freetds.mk b/src/freetds.mk
index 0418cfb..66212cb 100644
--- a/src/freetds.mk
+++ b/src/freetds.mk
@@ -43,6 +43,9 @@ define $(PKG)_BUILD
# package uses winsock2.h, so it should link to ws2_32 instead of wsock32
$(SED) 's,wsock32,ws2_32,g' -i '$(1)'/configure
+ # wine confuses the cross-compiling detection, so set it explicitly
+ $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
+
# beware --with-gnutls broken detection
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \