commit 511b40ad371ec292f74b9fc936fd1742d901581d
Author: Jacek Konieczny <[email protected]>
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
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit