]> git.saurik.com Git - wxWidgets.git/blobdiff - wxwin.m4
Other fixes to shared build.
[wxWidgets.git] / wxwin.m4
index d0415b928402afcbabb6ef5006b2b819e0c491c9..b5db4c310bc1a0c035f0fe251b447f4509acc44d 100644 (file)
--- a/wxwin.m4
+++ b/wxwin.m4
@@ -98,6 +98,9 @@ AC_DEFUN([AM_PATH_WXCONFIG],
      wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
      WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
   fi
+  if test "$cross_compiling" = "yes"; then
+     wx_config_args="$wx_config_args --host=$host_alias"
+  fi
 
   dnl don't search the PATH if WX_CONFIG_NAME is absolute filename
   if test -x "$WX_CONFIG_NAME" ; then