diff options
author | tnn <tnn@pkgsrc.org> | 2010-01-20 08:50:16 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2010-01-20 08:50:16 +0000 |
commit | 2ebcfcf79301a6bfb040cd5e9fc2d3e9dbec230e (patch) | |
tree | fb200a2287e4dc3bd2a67aa1255d644af6a6ae3f /print/ghostscript/Makefile | |
parent | cd25e30bec8b8f775d09f5b62d184b56cd3f726d (diff) | |
download | pkgsrc-2ebcfcf79301a6bfb040cd5e9fc2d3e9dbec230e.tar.gz |
Remove list of platforms needing -fPIC. Enable it always when using GCC.
Fixes DragonFly PR pkg/42644.
Diffstat (limited to 'print/ghostscript/Makefile')
-rw-r--r-- | print/ghostscript/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile index 7abe074e431..48dbe79310c 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. |