summaryrefslogtreecommitdiff
path: root/graphics/gimp
diff options
context:
space:
mode:
authortron <tron>2000-03-02 09:39:04 +0000
committertron <tron>2000-03-02 09:39:04 +0000
commit77236c5488470a376d84206ac8206c2338a3021c (patch)
tree9f2fcda7ec9e367dca9e34243deea0e682e62b5a /graphics/gimp
parent0ac4960f9aad93bb9009a55c811eff7c7380dff2 (diff)
downloadpkgsrc-77236c5488470a376d84206ac8206c2338a3021c.tar.gz
Only add "-Wl,-E" to "LDFLAGS" on ELF systems because the a.out "ld"
doesn't recognize this option.
Diffstat (limited to 'graphics/gimp')
-rw-r--r--graphics/gimp/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/graphics/gimp/Makefile b/graphics/gimp/Makefile
index d86aae0bbcf..488608e2f8e 100644
--- a/graphics/gimp/Makefile
+++ b/graphics/gimp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2000/03/02 02:12:06 hubertf Exp $
+# $NetBSD: Makefile,v 1.46 2000/03/02 09:39:04 tron Exp $
DISTNAME= gimp-1.0.4
CATEGORIES= graphics
@@ -34,9 +34,15 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}"
INFO_FILES= pdb.info
CPPFLAGS= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -Wl,-E
+LDFLAGS+= -L${LOCALBASE}/lib
PLIST_SUBST+= LOCALBASE=${LOCALBASE}
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OBJECT_FMT} == ELF)
+LDFLAGS+= -Wl,-E
+.endif
+
post-configure:
@${ECHO_MSG} "--> now configuring in ${GIMP_DATA}"
@(cd ${WRKDIR}/${GIMP_DATA} && ${SETENV} ${CONFIGURE_ENV} \