Commit be6758a4 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

omit trailing /. from relative RPATHs pointing to own directory


Change-Id: Ia4551f5b16f4e66c7ab7fdec82643d9cd8866ccd
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent 1ebce824
No related merge requests found
Showing with 8 additions and 2 deletions
......@@ -173,11 +173,17 @@ qt_module_deps = $$resolve_depends(qt_module_deps, "QT.")
} else {
binpath = $$target.path
}
QMAKE_RPATHDIR += @loader_path/$$relative_path($$[QT_INSTALL_LIBS], $$binpath)
rpath = @loader_path
} else {
QMAKE_LFLAGS += -Wl,-z,origin
QMAKE_RPATHDIR += $ORIGIN/$$relative_path($$[QT_INSTALL_LIBS], $$target.path)
binpath = $$target.path
rpath = $ORIGIN
}
# NOT the /dev property, as INSTALLS use host paths
relpath = $$relative_path($$[QT_INSTALL_LIBS], $$binpath)
!equals(relpath, .): \
rpath = $$rpath/$$relpath
QMAKE_RPATHDIR += $$rpath
} else {
QMAKE_RPATHDIR += $$[QT_INSTALL_LIBS/dev]
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment