summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-11-18 22:30:12 +0000
committerjperkin <jperkin@pkgsrc.org>2015-11-18 22:30:12 +0000
commitb2652b4b356d73023304b498e7d2f229c4fdf271 (patch)
tree177e035d8b10560de8448a668aa6bae3595a3db5
parent03e2f7486d81707d03d4eed4b6f83c9acf1db34c (diff)
downloadpkgsrc-b2652b4b356d73023304b498e7d2f229c4fdf271.tar.gz
Ensure building 32-bit on 64-bit is supported when using cwrappers too.
-rw-r--r--mk/platform/Linux.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/platform/Linux.mk b/mk/platform/Linux.mk
index 3c63ec0ac8a..aad4b3aab42 100644
--- a/mk/platform/Linux.mk
+++ b/mk/platform/Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Linux.mk,v 1.63 2015/07/18 15:08:43 wiedi Exp $
+# $NetBSD: Linux.mk,v 1.64 2015/11/18 22:30:12 jperkin Exp $
#
# Variable definitions for the Linux operating system.
@@ -127,6 +127,7 @@ LIBABISUFFIX?= 64
# explicitly set it.
.if ${NATIVE_MACHINE_ARCH} == "x86_64" && ${MACHINE_ARCH} == "i386"
_WRAP_EXTRA_ARGS.LD+= -m elf_i386
+CWRAPPERS_APPEND.ld+= -m elf_i386
.endif
## Use _CMD so the command only gets run when needed!