From 2ebcfcf79301a6bfb040cd5e9fc2d3e9dbec230e Mon Sep 17 00:00:00 2001 From: tnn Date: Wed, 20 Jan 2010 08:50:16 +0000 Subject: [PATCH] Remove list of platforms needing -fPIC. Enable it always when using GCC. Fixes DragonFly PR pkg/42644. --- print/ghostscript/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile index 7abe074e4313..48dbe79310c7 100644 --- a/print/ghostscript/Makefile +++ b/print/ghostscript/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.73 2010/01/18 09:59:22 wiz Exp $ +# $NetBSD: Makefile,v 1.74 2010/01/20 08:50:16 tnn Exp $ DISTNAME= ghostscript-8.70 PKGREVISION= 3 @@ -38,6 +38,7 @@ GS_RESOURCEDIR= ${PREFIX}/share/ghostscript/${PKGVERSION}/Resource CPPFLAGS+= -Ijpeg .include "../../mk/bsd.prefs.mk" +.include "../../mk/compiler.mk" .if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4") CFLAGS+= -DA4 @@ -58,9 +59,9 @@ CONFIGURE_ENV+= ac_cv_func_fopen64=no # 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 -CFLAGS.SunOS= -fPIC +.if !empty(PKGSRC_COMPILER:Mgcc) +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.