[packages/musescore] force -fPIC on all platforms

jajcus jajcus at pld-linux.org
Wed Apr 19 16:17:59 CEST 2017


commit 511b40ad371ec292f74b9fc936fd1742d901581d
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Wed Apr 19 16:16:33 2017 +0200

    force -fPIC on all platforms
    
    i686 build failed with:
    > /usr/include/qt5/QtCore/qglobal.h:1067:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."

 musescore.spec | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/musescore.spec b/musescore.spec
index 840ef4c..7678ab1 100644
--- a/musescore.spec
+++ b/musescore.spec
@@ -67,6 +67,8 @@ install -d build.release
 cd build.release
 
 # cmake flags taken from the main Makefile
+CFLAGS="%{rpmcflags} -DNDEBUG -DQT_NO_DEBUG -fPIC" \
+CXXFLAGS="%{rpmcflags} -DNDEBUG -DQT_NO_DEBUG -fPIC" \
 %cmake  \
 	-DMSCORE_INSTALL_SUFFIX="" \
 	-DMUSESCORE_LABEL="" \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/musescore.git/commitdiff/511b40ad371ec292f74b9fc936fd1742d901581d



More information about the pld-cvs-commit mailing list