f720b7a968
- rework a port a little bit to be sync in the openoffice linux code and remove some hacks that we don't need anymore - also use --as-needed while linking (which results in at least a 50% speed improovement) - depend on more libraries from the system instead of using the internal ones
20 lines
745 B
Plaintext
20 lines
745 B
Plaintext
$OpenBSD: patch-xpdf_makefile_mk,v 1.6 2010/11/09 18:40:04 robert Exp $
|
|
|
|
--- xpdf/makefile.mk.orig.port Thu Oct 21 14:14:23 2010
|
|
+++ xpdf/makefile.mk Sat Oct 23 18:40:08 2010
|
|
@@ -78,7 +78,14 @@ LDFLAGS:=$(ARCH_FLAGS)
|
|
.ENDIF
|
|
|
|
CONFIGURE_ACTION=configure
|
|
+.IF "$(OS)"=="OPENBSD"
|
|
+CONFIGURE_FLAGS+=--without-libpaper-library --without-x --enable-multithreaded --enable-exceptions \
|
|
+ CFLAGS='${ENVCFLAGS} -DLOCALBASE=\"${LOCALBASE}\" -pthread' \
|
|
+ CXXFLAGS='${ENVCFLAGS} -DLOCALBASE=\"${LOCALBASE}\" -pthread' \
|
|
+ LDFLAGS="-pthread"
|
|
+.ELSE
|
|
CONFIGURE_FLAGS+=--without-x --without-libpaper-library --without-t1-library --enable-multithreaded --enable-exceptions
|
|
+.ENDIF
|
|
|
|
.IF "$(OS)$(CPU)"=="MACOSXP"
|
|
CXXFLAGS+=-malign-natural
|