]> Creatis software - cpPlugins.git/blobdiff - config/install_mxe.sh
...
[cpPlugins.git] / config / install_mxe.sh
index e43c7dde4beed8e3f04af04a0c7597818d32693b..e23f5acaaee61e89aed6f1f83f89432eaff8f0d2 100755 (executable)
@@ -8,10 +8,6 @@ while [[ "$#" -gt 1 ]]; do
         prefix="$2"
         shift
         ;;
-        -suffix)
-        suffix="$2"
-        shift
-        ;;
         -cores)
         cores="$2"
         shift
@@ -25,7 +21,7 @@ done
 
 ## -- Check command line options
 if [ -z "$prefix" ] ; then
-    (>&2 echo "Usage: $0 -prefix [dir] [-suffix [string]] [-cores [n]]")
+    (>&2 echo "Usage: $0 -prefix [dir] [-cores [n]]")
     exit 1
 fi
 
@@ -33,9 +29,6 @@ fi
 if [ -z "$cores" ] ; then
     cores="1"
 fi
-if [ ! -z "$suffix" ] ; then
-    qt_suffix="-qtlibinfix $suffix"
-fi
 curr_dir=`pwd`
 
 ## -- Get mxe
@@ -46,6 +39,9 @@ git clone https://github.com/mxe/mxe.git
 cd $prefix/mxe
 echo "MXE_TARGETS := x86_64-w64-mingw32.shared" > settings.mk
 
+## -- Patch mxe
+patch -s -p1 < $curr_dir/mxe.patch
+
 ## -- Compile all
 make -j$cores -k qtbase vtk itk nsis