m4: Use LIBS instead of LDFLAGS for Qt libs
* m4/qt.m4: Modify LIBS instead of LDFLAGS for link test. -- The test would otherwise fail when building for windows because the link order was wrong.
This commit is contained in:
parent
bf742fb885
commit
744978cce8
6
m4/qt.m4
6
m4/qt.m4
@ -60,8 +60,8 @@ AC_DEFUN([FIND_QT],
|
|||||||
dnl for host.
|
dnl for host.
|
||||||
OLDCPPFLAGS=$CPPFLAGS
|
OLDCPPFLAGS=$CPPFLAGS
|
||||||
CPPFLAGS=$GPGME_QT_CFLAGS
|
CPPFLAGS=$GPGME_QT_CFLAGS
|
||||||
OLDLDFLAGS=$LDFLAGS
|
OLDLIBS=$LIBS
|
||||||
LDFLAGS=$GPGME_QT_LIBS
|
LIBS=$GPGME_QT_LIBS
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_MSG_CHECKING([whether a simple qt program can be built])
|
AC_MSG_CHECKING([whether a simple qt program can be built])
|
||||||
AC_LINK_IFELSE([AC_LANG_SOURCE([
|
AC_LINK_IFELSE([AC_LANG_SOURCE([
|
||||||
@ -73,6 +73,6 @@ AC_DEFUN([FIND_QT],
|
|||||||
AC_MSG_RESULT([$have_qt5_libs])
|
AC_MSG_RESULT([$have_qt5_libs])
|
||||||
AC_LANG_POP()
|
AC_LANG_POP()
|
||||||
CPPFLAGS=$OLDCPPFLAGS
|
CPPFLAGS=$OLDCPPFLAGS
|
||||||
LDFLAGS=$OLDLDFLAGS
|
LIBS=$OLDLIBS
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user