diff options
author | Peter Simons <simons@cryp.to> | 2011-04-01 19:01:08 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2011-04-01 19:02:09 +0200 |
commit | 413679a19ec9cdb725513a1aee54e735320692b4 (patch) | |
tree | fcd44d74ece33c445a801404b58fa680cbd645a0 /m4/ax_have_qt.m4 | |
parent | ab93064f204459241f841695a0ade031a2a92d39 (diff) | |
download | autoconf-archive-413679a19ec9cdb725513a1aee54e735320692b4.tar.gz |
AX_HAVE_QT: libraries come last, not first
The linker call in ax_have_qt.m4 names libraries before the objects.
This will fail when --as-needed is in effect. This patch moves the
libraries to the end of the command line.
See <http://savannah.gnu.org/patch/?7514> for further details.
Diffstat (limited to 'm4/ax_have_qt.m4')
-rw-r--r-- | m4/ax_have_qt.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_have_qt.m4 b/m4/ax_have_qt.m4 index 369eebc..71ebc2a 100644 --- a/m4/ax_have_qt.m4 +++ b/m4/ax_have_qt.m4 @@ -88,7 +88,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 5 +#serial 6 dnl Calls AX_PATH_QT_DIRECT (contained in this file) as a subroutine. AU_ALIAS([BNV_HAVE_QT], [AX_HAVE_QT]) @@ -309,7 +309,7 @@ EOF echo "configure: could not compile:" >&AC_FD_CC cat ax_qt_main.$ac_ext >&AC_FD_CC else - ax_try_4="$CXX $QT_LIBS $LIBS -o ax_qt_main ax_qt_main.o moc_ax_qt_test.o >/dev/null 2>/dev/null" + ax_try_4="$CXX -o ax_qt_main ax_qt_main.o moc_ax_qt_test.o $QT_LIBS $LIBS >/dev/null 2>/dev/null" AC_TRY_EVAL(ax_try_4) if test x"$ac_status" != x0; then echo "$ax_err_4" >&AC_FD_CC |