Don't use -rpath-link when building on Mac.
The logic here was wrong: test if the target linker supports -rpath-link, and then set it for both host and target via mkspecs/qmodule.pri. Change-Id: Ie4da7ed2e06e784f9edb65a27290913ab838a8c2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
7d8f5777be
commit
5af7e089f7
2
configure
vendored
2
configure
vendored
@ -7355,7 +7355,7 @@ QTMODULE="$outpath/mkspecs/qmodule.pri"
|
|||||||
echo "CONFIG += create_prl link_prl" >> "$QTMODULE.tmp"
|
echo "CONFIG += create_prl link_prl" >> "$QTMODULE.tmp"
|
||||||
|
|
||||||
# Ensure we can link to uninistalled libraries
|
# Ensure we can link to uninistalled libraries
|
||||||
if [ "$XPLATFORM_MINGW" != "yes" ] && [ "$CFG_EMBEDDED" != "nacl" ] && linkerSupportsFlag -rpath-link "$outpath/lib"; then
|
if [ "$BUILD_ON_MAC" != "yes" ] && [ "$XPLATFORM_MINGW" != "yes" ] && linkerSupportsFlag -rpath-link "$outpath/lib"; then
|
||||||
echo "QMAKE_LFLAGS = -Wl,-rpath-link,\$\$QT_BUILD_TREE/lib \$\$QMAKE_LFLAGS" >> "$QTMODULE.tmp"
|
echo "QMAKE_LFLAGS = -Wl,-rpath-link,\$\$QT_BUILD_TREE/lib \$\$QMAKE_LFLAGS" >> "$QTMODULE.tmp"
|
||||||
fi
|
fi
|
||||||
if [ -n "$QT_CFLAGS_PSQL" ]; then
|
if [ -n "$QT_CFLAGS_PSQL" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user