summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2008-09-05 15:50:03 +0000
committertron <tron@pkgsrc.org>2008-09-05 15:50:03 +0000
commitc4589f2fc096e54d3e26df61265855f8e8484bdd (patch)
tree06dba803f5d21ff63d450e54696b224adf80c3a0
parenta9aed517116517af17dd1fb5fba7e0e7f2916ec8 (diff)
downloadpkgsrc-c4589f2fc096e54d3e26df61265855f8e8484bdd.tar.gz
Compile with "-fPIC" under NetBSD to fix amd64 build problems.
-rw-r--r--print/ghostscript/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile
index 324e699d9c5..4021c7c2d4c 100644
--- a/print/ghostscript/Makefile
+++ b/print/ghostscript/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2008/09/03 21:31:12 markd Exp $
+# $NetBSD: Makefile,v 1.52 2008/09/05 15:50:03 tron Exp $
DISTNAME= ghostscript-8.63
PKGREVISION= 1
@@ -50,6 +50,10 @@ SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g"
CONFIGURE_ENV+= ac_cv_func_fopen64=no
.endif
+.if ${OPSYS} == "NetBSD"
+CFLAGS+= -fPIC
+.endif
+
# Interim IRIX build fix, the real problem is that fontconfig.pc doesn't
# require linking against libiconv when it should do so.
.if ${OPSYS} == "IRIX"