pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/ghostscript Remove list of platforms needing -fP...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2333078a1b87
branches:  trunk
changeset: 569822:2333078a1b87
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Wed Jan 20 08:50:16 2010 +0000

description:
Remove list of platforms needing -fPIC. Enable it always when using GCC.
Fixes DragonFly PR pkg/42644.

diffstat:

 print/ghostscript/Makefile |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 79e344d360dd -r 2333078a1b87 print/ghostscript/Makefile
--- a/print/ghostscript/Makefile        Wed Jan 20 04:55:03 2010 +0000
+++ b/print/ghostscript/Makefile        Wed Jan 20 08:50:16 2010 +0000
@@ -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 @@
 CPPFLAGS+=             -Ijpeg
 
 .include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
 
 .if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4")
 CFLAGS+=               -DA4
@@ -58,9 +59,9 @@
 # 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.



Home | Main Index | Thread Index | Old Index