mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-25 21:59:30 +01:00
[HACK] Force -fPIC for Qt5
This commit is contained in:
parent
672a1b5001
commit
11603e46e0
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue