diff --git a/pkgs/development/libraries/qt-5/5.6/qtbase/setup-hook.sh b/pkgs/development/libraries/qt-5/5.6/qtbase/setup-hook.sh index 8f86de93449d..0e73e0d31ebf 100644 --- a/pkgs/development/libraries/qt-5/5.6/qtbase/setup-hook.sh +++ b/pkgs/development/libraries/qt-5/5.6/qtbase/setup-hook.sh @@ -141,17 +141,4 @@ _qtLinkAllModules() { done } -_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) +preConfigureHooks+=(_qtLinkAllModules)