[HACK] Force -fPIC for Qt5

This commit is contained in:
Olivier Teuliere 2020-09-14 12:25:02 +02:00
parent 672a1b5001
commit 11603e46e0

View file

@ -194,11 +194,13 @@ AS_IF([test "${enable_qt}" != "no"],
AC_PATH_PROGS(RCC, rcc, rcc,`$PKG_CONFIG --variable=exec_prefix Qt5Core`/bin) AC_PATH_PROGS(RCC, rcc, rcc,`$PKG_CONFIG --variable=exec_prefix Qt5Core`/bin)
QT4LOCALEDIR="$($PKG_CONFIG --variable=prefix QtCore)/share/qt4/translations/" QT4LOCALEDIR="$($PKG_CONFIG --variable=prefix QtCore)/share/qt4/translations/"
AC_SUBST(QT4LOCALEDIR) AC_SUBST(QT4LOCALEDIR)
dnl FIXME: hack
CXXFLAGS="${CXXFLAGS} -fPIC"
], ],
[AC_MSG_ERROR([Could not find Qt5 on your system (using pkg-config)])] [AC_MSG_ERROR([Could not find Qt5 on your system (using pkg-config)])]
) )
]) ])
dnl We biuld either with Qt4 or Qt5, but not both dnl We build either with Qt4 or Qt5, but not both
if test "${qt5_ok}" = "1" && "${qt4_ok}" = "1"; then if test "${qt5_ok}" = "1" && "${qt4_ok}" = "1"; then
AC_MSG_ERROR([Please deactivate Qt4 explicitly if you want to build with Qt5]) AC_MSG_ERROR([Please deactivate Qt4 explicitly if you want to build with Qt5])
fi fi