]> git.pld-linux.org Git - packages/crossmingw32-libxml2.git/commitdiff
- added filterout_c auto/th/crossmingw32-libxml2-2.9.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 15 Sep 2012 10:44:40 +0000 (12:44 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 15 Sep 2012 10:44:40 +0000 (12:44 +0200)
crossmingw32-libxml2.spec

index e1a482bed489fe81077a2dc96e900c14c0722e4c..cf5eff106b3f0c9632c67a53a592742d4f61273b 100644 (file)
@@ -34,7 +34,14 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _dlldir                 /usr/share/wine/windows/system
 %define                __cc                    %{target}-gcc
 %define                __cxx                   %{target}-g++
-%define                filterout_ld            -Wl,--as-needed -Wl,-z,relro -Wl,-z,combreloc
+
+%ifnarch %{ix86}
+# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
+%define                optflags        -O2
+%endif
+# -z options are invalid for mingw linker, most of -f options are Linux-specific
+%define                filterout_ld    -Wl,--as-needed -Wl,-z,relro -Wl,-z,combreloc
+%define                filterout_c     -f[-a-z0-9=]*
 
 %description
 This library allows you to manipulate XML files.
This page took 0.262903 seconds and 4 git commands to generate.