summaryrefslogtreecommitdiff
path: root/print/ghostscript
diff options
context:
space:
mode:
authorrillig <rillig>2008-12-01 07:49:22 +0000
committerrillig <rillig>2008-12-01 07:49:22 +0000
commitab77bf2777004062a44595975f747c31c74723be (patch)
treebf221ca0735cef4bcde79350c187a07b99f3fae5 /print/ghostscript
parenta5be30a7ff6e331bf93999d729cfe6c93b724442 (diff)
downloadpkgsrc-ab77bf2777004062a44595975f747c31c74723be.tar.gz
Added -fPIC for Linux, since it was reported to be necessary on x86_64
platforms via pkgsrc-users.
Diffstat (limited to 'print/ghostscript')
-rw-r--r--print/ghostscript/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile
index c7af28c5497..4993acc35e5 100644
--- a/print/ghostscript/Makefile
+++ b/print/ghostscript/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2008/11/13 17:36:54 chuck Exp $
+# $NetBSD: Makefile,v 1.54 2008/12/01 07:49:22 rillig Exp $
DISTNAME= ghostscript-8.63
PKGREVISION= 1
@@ -50,9 +50,11 @@ SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g"
CONFIGURE_ENV+= ac_cv_func_fopen64=no
.endif
-.if ${OPSYS} == "NetBSD"
-CFLAGS+= -fPIC
-.endif
+# On Linux-*-x86_64, there was an error message:
+# gp_unix.o: relocation R_X86_64_32 against `a local symbol' can not be
+# used when making a shared object; recompile with -fPIC
+CFLAGS.NetBSD= -fPIC
+CFLAGS.Linux= -fPIC
###.if ${OPSYS} == "Darwin"
###MAKEFLAGS= "LDFLAGS_SO=-dynamiclib"