summaryrefslogtreecommitdiffstats
path: root/src/poppler.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/poppler.mk')
-rw-r--r--src/poppler.mk15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/poppler.mk b/src/poppler.mk
index e569d84..35fe2ff 100644
--- a/src/poppler.mk
+++ b/src/poppler.mk
@@ -24,14 +24,14 @@ define $(PKG)_BUILD
cd '$(1)' \
&& PATH='$(PREFIX)/$(TARGET)/qt/bin:$(PATH)' \
./configure \
- --host='$(TARGET)' \
- --build="`config.guess`" \
- --prefix='$(PREFIX)/$(TARGET)' \
+ $(MXE_CONFIGURE_OPTS) \
--disable-silent-rules \
- --disable-shared \
- --enable-static \
--enable-xpdf-headers \
- --enable-poppler-qt4 \
+ $(if $(filter qtbase,$($(PKG)_DEPS)), \
+ --enable-poppler-qt5 \
+ --disable-poppler-qt4, \
+ --disable-poppler-qt5 \
+ --enable-poppler-qt4) \
--enable-zlib \
--enable-cms=lcms2 \
--enable-libcurl \
@@ -64,6 +64,3 @@ define $(PKG)_BUILD
'$(2).cxx' -o '$(PREFIX)/$(TARGET)/bin/test-poppler.exe' \
`'$(TARGET)-pkg-config' poppler poppler-cpp --cflags --libs`
endef
-
-$(PKG)_BUILD_SHARED =
-