qt: remove install_name_tool stuff

hopefully it's not needed - the frameworks are no longer there
This commit is contained in:
Matthew Justin Bauer 2018-06-02 23:07:12 -04:00 committed by GitHub
parent 49dc36c9a8
commit 4ae5f8a92a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,24 +374,6 @@ stdenv.mkDerivation {
'' ''
+ ( + (
if stdenv.isDarwin
then
''
fixDarwinDylibNames_rpath() {
local flags=()
for fn in "$@"; do
flags+=(-change "@rpath/$fn.framework/Versions/5/$fn" "$out/lib/$fn.framework/Versions/5/$fn")
done
for fn in "$@"; do
echo "$fn: fixing dylib"
install_name_tool -id "$out/lib/$fn.framework/Versions/5/$fn" "''${flags[@]}" "$out/lib/$fn.framework/Versions/5/$fn"
done
}
fixDarwinDylibNames_rpath "QtConcurrent" "QtPrintSupport" "QtCore" "QtSql" "QtDBus" "QtTest" "QtGui" "QtWidgets" "QtNetwork" "QtXml" "QtOpenGL"
''
else
# fixup .pc file (where to find 'moc' etc.) # fixup .pc file (where to find 'moc' etc.)
'' ''
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \ sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \