]> git.pld-linux.org Git - packages/musescore.git/commitdiff
force -fPIC on all platforms
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Wed, 19 Apr 2017 14:16:33 +0000 (16:16 +0200)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Wed, 19 Apr 2017 14:16:33 +0000 (16:16 +0200)
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

index 840ef4c1f851a760698da0922878ac1623dacf5e..7678ab12a441990a199c9ca9de4de311e92dee4e 100644 (file)
@@ -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="" \
This page took 0.09452 seconds and 4 git commands to generate.