From 748329d53795b359bf343e927f6d98cdb54ac735 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Remove -I%{_mingw_includedir} from CFLAGs since its in the compiler's default path & breaks apps which also ned to run the native host compiler. Add PKG_CONFIG_PATH to override RPM's default setting --- filesystem/mingw-macros.mingw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filesystem/mingw-macros.mingw b/filesystem/mingw-macros.mingw index d45fd0d..2945586 100644 --- a/filesystem/mingw-macros.mingw +++ b/filesystem/mingw-macros.mingw @@ -20,8 +20,7 @@ %_mingw_cflags -O2 -g -pipe -Wall \\\ -Wp,-D_FORTIFY_SOURCE=2 \\\ -fexceptions \\\ - --param=ssp-buffer-size=4 \\\ - -I%{_mingw_includedir} + --param=ssp-buffer-size=4 %_mingw_cc i686-pc-mingw32-gcc %_mingw_cpp i686-pc-mingw32-gcc -E @@ -31,6 +30,7 @@ %_mingw_objdump i686-pc-mingw32-objdump %_mingw_configure \ + PKG_CONFIG_PATH="%{_mingw_libdir}/pkgconfig" \\\ CC="%{_mingw_cc}" \\\ CFLAGS="%{_mingw_cflags}" \\\ ./configure \\\ -- 1.8.3.1