summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache>2014-04-02 12:49:25 +0000
committerobache <obache>2014-04-02 12:49:25 +0000
commit13dd57908e20bb56969535c900844882aa6d2061 (patch)
treebba2f3637da7f6c36e0e928f674a0673118039d8
parentbf2ea454ede5ebf1e78ffca6caf1844cc63a2b11 (diff)
downloadpkgsrc-13dd57908e20bb56969535c900844882aa6d2061.tar.gz
Add an hack to avoid /bin/sh bug in NetBSD-6 release or prior.
PR pkg/48695.
-rw-r--r--cross/binutils-mips-current/hacks.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/cross/binutils-mips-current/hacks.mk b/cross/binutils-mips-current/hacks.mk
new file mode 100644
index 00000000000..b51893f5569
--- /dev/null
+++ b/cross/binutils-mips-current/hacks.mk
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.1 2014/04/02 12:49:25 obache Exp $
+
+.if !defined(BINUTILS_MIPS_CURRENT_HACKS_MK)
+BINUTILS_MIPS_CURRENT_HACKS_MK= # defined
+
+#
+# Hit a bug of /bin/sh in NetBSD-6 release or prior.
+# PR pkg/48695
+#
+.if !empty(MACHINE_PLATFORM:MNetBSD-[0-6].*-*) \
+ && empty(MACHINE_PLATFORM:MNetBSD-6.99-*-*)
+CONFIG_SHELL= /bin/ksh
+.endif
+
+.endif # BINUTILS_MIPS_CURRENT_HACKS_MK