]> git.lyx.org Git - lyx.git/commitdiff
Improve detection of Qt6 libs
authorEnrico Forestieri <forenr@lyx.org>
Sat, 16 Oct 2021 17:09:30 +0000 (19:09 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 16 Oct 2021 17:09:30 +0000 (19:09 +0200)
We would miss the libraries specified by a full path when
also '-L' flags are present, as we would only take into
account those specified by '-l' flags.

config/qt.m4

index cfd6a596a4f41563d92162b1c52ffe7737515b44..99f43a215b2eb5343a95de82f2d8bc9f3f94cc9f 100644 (file)
@@ -454,7 +454,7 @@ EOF2
                    QT_LDFLAGS="-L`$QT_QMAKE -query QT_INSTALL_LIBS`"
                    QT_LIB="$qt_guilibs"
                else
-                   QT_LIB=`echo $qt_guilibs | tr ' ' '\n' | grep -e "^-l" | tr '\n' ' '`
+                   QT_LIB=`echo $qt_guilibs | tr ' ' '\n' | grep -v "^-L" | tr '\n' ' '`
                fi
                QTLIB_VERSION=`$QT_QMAKE -v | grep "Qt version" | sed -e 's/.*\([[0-9]]\.[[0-9]]*\.[[0-9]]\).*/\1/'`
                if test -z "$QT_LIB"; then