[poppler] Branch 'qt5' - configure.ac qt5/src
Albert Astals Cid
aacid at kemper.freedesktop.org
Mon Jun 17 11:07:24 PDT 2013
configure.ac | 10 ++++++----
qt5/src/Makefile.am | 2 +-
2 files changed, 7 insertions(+), 5 deletions(-)
New commits:
commit 06f45c7177afc67e02985be1a97cd976c530c4ae
Author: Albert Astals Cid <aacid at kde.org>
Date: Mon Jun 17 20:04:49 2013 +0200
Build fixes
Fix moc when moc-qt4 is qt4 moc but moc is qt5 one
Do not add -fPIE everywhere, just -fPIC to qt5
diff --git a/configure.ac b/configure.ac
index 91db463..a2ec238 100644
--- a/configure.ac
+++ b/configure.ac
@@ -608,14 +608,16 @@ if test x$enable_poppler_qt4 = xyes; then
if test x"$mocversiongrep" != x"$mocversion"; then
AC_MSG_RESULT([no])
# moc was not the qt4 one, try with moc-qt4
- AC_CHECK_TOOL(MOCQT4, moc-qt4)
+ AC_CHECK_TOOL(MOCQT42, moc-qt4)
AC_MSG_CHECKING([for Qt4 moc-qt4])
- mocversion=`$MOCQT4 -v 2>&1`
+ mocversion=`$MOCQT42 -v 2>&1`
mocversiongrep=`echo $mocversion | grep "Qt 4"`
if test x"$mocversiongrep" != x"$mocversion"; then
# no valid moc found
enable_poppler_qt4=no;
MOCQT4="not found"
+ else
+ MOCQT4=$MOCQT42
fi
fi
AC_SUBST(MOCQT4)
@@ -802,14 +804,14 @@ if test "x$GCC" != xyes; then
fi
case "$enable_compile_warnings" in
no) ;;
- yes) CXXFLAGS="-Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-check-new -fno-common -fPIE $CXXFLAGS";
+ yes) CXXFLAGS="-Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-check-new -fno-common $CXXFLAGS";
CFLAGS="-Wall $CFLAGS" ;;
kde) CXXFLAGS="-Wnon-virtual-dtor -Wno-long-long -Wundef \
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wcast-align \
-Wconversion -Wall -W -Wpointer-arith \
-Wwrite-strings -O2 -Wformat-security \
-Wmissing-format-attribute -fno-exceptions -fno-check-new \
- -fno-common -fPIE $CXXFLAGS" ;;
+ -fno-common $CXXFLAGS" ;;
esac
case `$PKG_CONFIG --version` in
diff --git a/qt5/src/Makefile.am b/qt5/src/Makefile.am
index e31e5fe..77f16df 100644
--- a/qt5/src/Makefile.am
+++ b/qt5/src/Makefile.am
@@ -54,7 +54,7 @@ libpoppler_qt5_la_SOURCES = \
poppler-embeddedfile-private.h
libpoppler_qt5_la_CXXFLAGS = \
- -Dpoppler_qt5_EXPORTS
+ -Dpoppler_qt5_EXPORTS -fPIC
libpoppler_qt5_la_LIBADD = \
$(top_builddir)/poppler/libpoppler.la \
More information about the poppler
mailing list