]> sigrok.org Git - sigrok-util.git/blobdiff - cross-compile/msys2/sigrok-native-msys2
sigrok-cross-mingw: Patch MXE's glib to fix compiler warnings.
[sigrok-util.git] / cross-compile / msys2 / sigrok-native-msys2
index 03372bcad0c1df8f611e7969eaedc2cd18293fa4..f41b67aba824641c590d1f59225dd9ef6d6dc5df 100755 (executable)
@@ -42,11 +42,18 @@ DEBUG=0
 
 # -----------------------------------------------------------------------------
 
+# Abort if the user runs the script in an "MSYS2 MSYS" shell.
+if [ $MSYSTEM = "MSYS" ]; then
+       echo "Building in an 'MSYS2 MSYS' shell will not work, aborting."
+       echo "Please use the 'MSYS2 MinGW 64-bit' (or 32-bit) shell."
+       exit
+fi
+
 # The build target type: "i686" (32bit) or "x86_64" (64bit).
 # This is selected based on which MSYS2 shell is being used to do the build.
 TARGET=$MSYSTEM_CARCH
 
-VER_SIGROK_FIRMWARE_FX2LAFW=0.1.5
+VER_SIGROK_FIRMWARE_FX2LAFW=0.1.6
 
 WGET="wget -c --quiet"
 GIT_CLONE="git clone --depth=1"
@@ -72,9 +79,12 @@ fi
 
 PYPATH=$PREFIX/$PYBASE
 
+# Eliminate the host Python path environment variable, if any is set.
+export PYTHONPATH=
+
 # -----------------------------------------------------------------------------
 
-P="$PREFIX/lib/pkgconfig"
+P="$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"
 C="$C --prefix=$PREFIX"
 L="--disable-shared --enable-static"