From 040374f3439d067286726afcb2e62c3dfb84dd92 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Sun, 23 Sep 2012 15:04:53 +0200 Subject: [PATCH] use -F instead of -L to link Qt frameworks --- config/qt4.m4 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config/qt4.m4 b/config/qt4.m4 index eea6fdf4f8..5cbf7f7538 100644 --- a/config/qt4.m4 +++ b/config/qt4.m4 @@ -202,10 +202,18 @@ AC_DEFUN([QT4_DO_MANUAL_CONFIG], done QT4_CORE_INCLUDES="-I$qt4_cv_includes -I$qt4_cv_includes/QtCore" fi - if test -n "$qt4_cv_libraries"; then + case "$qt4_cv_libraries" in + *framework*) + QT4_LDFLAGS="-F$qt4_cv_libraries" + QT4_CORE_LDFLAGS="-F$qt4_cv_libraries" + ;; + "") + ;; + *) QT4_LDFLAGS="-L$qt4_cv_libraries" QT4_CORE_LDFLAGS="-L$qt4_cv_libraries" - fi + ;; + esac AC_SUBST(QT4_INCLUDES) AC_SUBST(QT4_CORE_INCLUDES) AC_SUBST(QT4_LDFLAGS)