summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-04-27 14:53:16 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-04-30 15:02:33 (GMT)
commit487be64194a23ff44dd1d4ee861a39b3cfdbd0ea (patch)
treebd1257c989ee5b4cbeb08d23264a7470e120bf9b
parent6bc4e2c6b3890b7a7b5443d4594bfda99e244514 (diff)
downloadQt-487be64194a23ff44dd1d4ee861a39b3cfdbd0ea.zip
Qt-487be64194a23ff44dd1d4ee861a39b3cfdbd0ea.tar.gz
Qt-487be64194a23ff44dd1d4ee861a39b3cfdbd0ea.tar.bz2
teach configure QMAKE_LFLAGS_RPATH (in addition to obsolete QMAKE_RPATH)
this is what prevented using QMAKE_LFLAGS_RPATH instead of the obsolete QMAKE_RPATH in our own qmake.conf files. Reviewed-by: Tobias Hunger
-rwxr-xr-xconfigure15
1 files changed, 7 insertions, 8 deletions
diff --git a/configure b/configure
index 63d8f2d..6763969 100755
--- a/configure
+++ b/configure
@@ -4420,8 +4420,7 @@ fi
# is where the resulting variable is written to
setBootstrapVariable()
{
- variableRegExp="^$1[^_A-Z0-9]"
- getQMakeConf | grep "$variableRegExp" | ( [ -n "$2" ] && sed "$2" ; [ -z "$2" ] && cat ) | $AWK '
+ getQMakeConf | $AWK '/^('"$1"')[^_A-Z0-9]/ { print $0; }' | ( [ -n "$2" ] && sed "$2" ; [ -z "$2" ] && cat ) | $AWK '
{
varLength = index($0, "=") - 1
valStart = varLength + 2
@@ -4536,10 +4535,10 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS \$(QMAKE_CXXFLAGS_DEBUG)"
fi
- if [ '!' -z "$RPATH_FLAGS" ] && [ '!' -z "`getQMakeConf \"$QMAKESPEC\" | grep QMAKE_RPATH | awk '{print $3;}'`" ]; then
- setBootstrapVariable QMAKE_RPATH 's,\$\$LITERAL_WHITESPACE, ,'
- for rpath in $RPATH_FLAGS; do
- EXTRA_LFLAGS="\$(QMAKE_RPATH)\"$rpath\" $EXTRA_LFLAGS"
+ if [ '!' -z "$RPATH_FLAGS" ] && [ '!' -z "`getQMakeConf \"$QMAKESPEC\" | $AWK '/QMAKE_(LFLAGS_)?RPATH/ {print $3;}'`" ]; then
+ setBootstrapVariable "QMAKE_(LFLAGS_)?RPATH" 's,\$\$LITERAL_WHITESPACE, ,;s,QMAKE_RPATH,QMAKE_LFLAGS_RPATH,'
+ for rpath in $RPATH_FLAGS; do
+ EXTRA_LFLAGS="\$(QMAKE_LFLAGS_RPATH)\"$rpath\" $EXTRA_LFLAGS"
done
fi
if [ "$PLATFORM_MAC" = "yes" ]; then
@@ -6679,10 +6678,10 @@ if [ "$PLATFORM_MAC" = "yes" ]; then
if [ "$CFG_RPATH" = "yes" ]; then
QMAKE_CONFIG="$QMAKE_CONFIG absolute_library_soname"
fi
-elif [ -z "`getQMakeConf \"$XQMAKESPEC\" | grep QMAKE_RPATH | awk '{print $3;}'`" ]; then
+elif [ -z "`getQMakeConf \"$XQMAKESPEC\" | $AWK '/QMAKE_(LFLAGS_)?RPATH/ {print $3;}'`" ]; then
if [ -n "$RPATH_FLAGS" ]; then
echo
- echo "ERROR: -R cannot be used on this platform as \$QMAKE_RPATH is"
+ echo "ERROR: -R cannot be used on this platform as \$QMAKE_LFLAGS_RPATH is"
echo " undefined."
echo
exit 1