]> git.pld-linux.org Git - packages/pl.git/commitdiff
- try fixing build issues
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 2 Dec 2013 08:18:52 +0000 (09:18 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 2 Dec 2013 08:18:52 +0000 (09:18 +0100)
pl.spec

diff --git a/pl.spec b/pl.spec
index eb00d5468ca3e1fe8b720bf9506e74f572de9c30..d7a1e317a4b8e2b52fd8dd6380498c15242a834a 100644 (file)
--- a/pl.spec
+++ b/pl.spec
@@ -162,6 +162,12 @@ PATH="$(pwd)/src:$PATH"; export PATH
 LD_LIBRARY_PATH="$(pwd)/lib/%{_target_cpu}-linux"; export LD_LIBRARY_PATH
 export CLASSPATH=.
 
+# packages use SWI-Prolog own linker which doesn't understand -gdwarf* and
+# some -march= options passed to it by gcc
+%undefine      debuginfocflags
+CFLAGS=$(echo %{rpmcflags} | sed 's|-march=[^ ]*||')
+export CFLAGS
+
 cd packages
 wd=`pwd`
 # see packages/configure for default packages list and their order
This page took 0.115755 seconds and 4 git commands to generate.