L="--disable-shared --enable-static"
DDK="$MXE/usr/$TOOLCHAIN_TRIPLET/include/ddk"
+export PKG_CONFIG_PATH_i686_pc_mingw32_static="$P:$P2"
+
# Remove build directory contents (if any) and create a new build dir.
rm -rf $BUILDDIR
mkdir $BUILDDIR
$GIT_CLONE git://sigrok.org/libserialport
cd libserialport
./autogen.sh
-PKG_CONFIG_PATH_i686_pc_mingw32_static=$P CFLAGS="-I$DDK" ./configure $C $L
+CFLAGS="-I$DDK" ./configure $C $L
make $PARALLEL V=1
make install
cd ..
cd libsigrok
patch -p1 < ../../libsigrok_firmwaredir.patch
./autogen.sh
-PKG_CONFIG_PATH_i686_pc_mingw32_static=$P ./configure $C $L
+./configure $C $L
make $PARALLEL V=1
make install
cd ..
cd libsigrokdecode
./autogen.sh
patch -p1 < ../../srd_decodersdir.patch
-PKG_CONFIG_PATH_i686_pc_mingw32_static=$P ./configure $C $L
+./configure $C $L
make $PARALLEL V=1
make install
cd ..
$GIT_CLONE git://sigrok.org/sigrok-cli
cd sigrok-cli
./autogen.sh
-PKG_CONFIG_PATH_i686_pc_mingw32_static=$P:$P2 ./configure $C
+./configure $C
make $PARALLEL V=1
make install
makensis -DHOME=$HOME contrib/sigrok-cli_cross.nsi
# PulseView
$GIT_CLONE git://sigrok.org/pulseview
cd pulseview
-PKG_CONFIG_PATH_i686_pc_mingw32_static=$P:$P2 cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y .
+cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y .
make $PARALLEL VERBOSE=1
make install
makensis -DHOME=$HOME contrib/pulseview_cross.nsi