From b136c92f8318a234661bddd7be013eea70d77a12 Mon Sep 17 00:00:00 2001 From: epienbro Date: Sat, 29 Aug 2009 14:40:08 +0000 Subject: [PATCH] Somehow this change wasn't sent along with the previous commit.. --- mingw32-scripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mingw32-scripts.sh b/mingw32-scripts.sh index 24af47a..adc1e95 100755 --- a/mingw32-scripts.sh +++ b/mingw32-scripts.sh @@ -21,5 +21,9 @@ # This is a useful command-line script through which one can use the # macros from mingw32-macros.mingw32 cross-compilation. -NAME="_`basename $0|tr -- - _`" +if [ "`basename $0`" = "i686-pc-mingw32-pkg-config" ] ; then + NAME="_mingw32_pkg_config" +else + NAME="_`basename $0|tr -- - _`" +fi eval "`rpm --eval "%{$NAME}"`" "$@"