3
0
Fork 0
forked from mirrors/nixpkgs

qt56.qtbase: apply CMake setup-hook fix locally

This commit is contained in:
Thomas Tuegel 2016-05-31 20:47:48 -05:00
parent 26a84169ff
commit 6b6f067397

View file

@ -141,4 +141,17 @@ _qtLinkAllModules() {
done done
} }
preConfigureHooks+=(_qtLinkAllModules) _qtFixCMake() {
for flag in $NIX_CFLAGS_COMPILE $NIX_LDFLAGS; do
case $flag in
-L*)
CMAKE_INSTALL_RPATH="$CMAKE_INSTALL_RPATH${CMAKE_INSTALL_RPATH:+:}${flag:2}"
;;
esac
done
cmakeFlags="-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE $cmakeFlags"
cmakeFlags="-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE $cmakeFlags"
cmakeFlags="-DCMAKE_INSTALL_RPATH=$CMAKE_INSTALL_RPATH $cmakeFlags"
}
preConfigureHooks+=(_qtLinkAllModules _qtFixCMake)