ref: 1534df0b3cd94e844564c512ae70f09b6642b34f
parent: ece9177f5aa641fcc2513715748746ff103f47fa
author: ISSOtm <[email protected]>
date: Wed Oct 30 08:18:16 EDT 2019
Use minGW's pkg-config
--- a/Makefile
+++ b/Makefile
@@ -228,8 +228,8 @@
# install instructions instead.
mingw32:
- $Qenv PKG_CONFIG_PATH=/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/ \
- make CC=i686-w64-mingw32-gcc YACC=bison -j
+ $Qmake CC=i686-w64-mingw32-gcc YACC=bison \
+ PKG_CONFIG=i686-w64-mingw32-pkg-config -j
$Qecho -e '#!/bin/sh\nWINEDEBUG=-all wine $$0.exe "$${@:1}"' > rgbshim.sh
$Qchmod +x rgbshim.sh
$Qln -s rgbshim.sh rgbasm
@@ -238,8 +238,8 @@
$Qln -s rgbshim.sh rgbgfx
mingw64:
- $Qenv PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/ \
- make CC=x86_64-w64-mingw32-gcc YACC=bison -j
+ $Qmake CC=x86_64-w64-mingw32-gcc YACC=bison \
+ PKG_CONFIG=x86_64-w64-mingw32-pkg-config -j
$Qecho -e '#!/bin/sh\nWINEDEBUG=-all wine $$0.exe "$${@:1}"' > rgbshim.sh
$Qchmod +x rgbshim.sh
$Qln -s rgbshim.sh rgbasm