forked from mirrors/nixpkgs
qt56.qtbase: apply CMake setup-hook fix locally
This commit is contained in:
parent
26a84169ff
commit
6b6f067397
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue