summaryrefslogtreecommitdiff
path: root/devel/binutils
diff options
context:
space:
mode:
authorryoon <ryoon>2014-01-13 15:06:55 +0000
committerryoon <ryoon>2014-01-13 15:06:55 +0000
commitf874f4505ed443be1e7a8e49921643e1a63d1998 (patch)
treee29eea75567b7572476d6b17c6ce19f8f2b338a8 /devel/binutils
parent2e2d6b5bdb21df5a6c1ee13583277b3fd5220df1 (diff)
downloadpkgsrc-f874f4505ed443be1e7a8e49921643e1a63d1998.tar.gz
Fix PR pkg/48504
* Use ksh instead of /bin/sh for NetBSD 5 and 6 * Tested on NetBSD/i386 5.2 and NetBSD/amd64 6.1 with non-PREFER_PKGSRC
Diffstat (limited to 'devel/binutils')
-rw-r--r--devel/binutils/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile
index 8d2196217c3..5526caaa928 100644
--- a/devel/binutils/Makefile
+++ b/devel/binutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.55 2014/01/06 14:58:41 wiz Exp $
+# $NetBSD: Makefile,v 1.56 2014/01/13 15:06:55 ryoon Exp $
DISTNAME= binutils-2.24
CATEGORIES= devel
@@ -22,6 +22,14 @@ REPLACE_LOCALEDIR_PATTERNS+= Make-in
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
+# PR pkg/48504, ksh is sufficient for NetBSD 5.2 and NetBSD 6.1
+.include "../../mk/bsd.prefs.mk"
+.if !empty(MACHINE_PLATFORM:MNetBSD-[5-6].*-*) && \
+ empty(MACHINE_PLATFORM:MNetBSD-6.99.*-*)
+USE_TOOLS+= ksh
+CONFIG_SHELL= ksh
+.endif
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-lib-path='/lib:/usr/lib'
CONFIGURE_ARGS+= --program-prefix=g