From: Daniel P. Berrange <"Daniel P. Berrange "> Date: Wed, 10 Sep 2008 08:59:39 +0000 (-0400) Subject: Remove -I%{_mingw_includedir} from CFLAGs since its in the compiler's default path... X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=748329d53795b359bf343e927f6d98cdb54ac735;p=fedora-mingw.git 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 --- 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 \\\