[packages/pl] - try fixing build issues

baggins baggins at pld-linux.org
Mon Dec 2 09:19:06 CET 2013


commit 41eeca099d58235ed15dc463cb28adf70c533161
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Dec 2 09:18:52 2013 +0100

    - try fixing build issues

 pl.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/pl.spec b/pl.spec
index eb00d54..d7a1e31 100644
--- 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pl.git/commitdiff/41eeca099d58235ed15dc463cb28adf70c533161



More information about the pld-cvs-commit mailing list