changeset 1006:a1bef743cba0

wine fix for package wxwidgets (by Tony Theodore)
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 26 May 2010 02:51:36 +0200
parents fd7cb3e87a0e
children 6daf96911c63
files src/wxwidgets.mk
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/wxwidgets.mk	Mon May 24 11:01:28 2010 +0200
+++ b/src/wxwidgets.mk	Wed May 26 02:51:36 2010 +0200
@@ -21,6 +21,8 @@
 define $(PKG)_BUILD
     $(SED) -i 's,png_check_sig,png_sig_cmp,g'                       '$(1)/configure'
     $(SED) -i 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' '$(1)/configure'
+    # wine confuses the cross-compiling detection, so set it explicitly
+    $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
     cd '$(1)' && ./configure \
         --host='$(TARGET)' \
         --disable-shared \
@@ -65,6 +67,8 @@
     cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,wxwidgets)
     $(SED) -i 's,png_check_sig,png_sig_cmp,g'                       '$(1)/$(wxwidgets_SUBDIR)/configure'
     $(SED) -i 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' '$(1)/$(wxwidgets_SUBDIR)/configure'
+    # wine confuses the cross-compiling detection, so set it explicitly
+    $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/$(wxwidgets_SUBDIR)/configure'
     cd '$(1)/$(wxwidgets_SUBDIR)' && ./configure \
         --host='$(TARGET)' \
         --disable-shared \