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
commit6ad5d896abfdc38550afb4a93aa37dfa96fa3f7f (patch)
tree177e035d8b10560de8448a668aa6bae3595a3db5
parent0a4bb2196e9083ad8136f7fea70210490b9a59e0 (diff)
downloadpkgsrc-6ad5d896abfdc38550afb4a93aa37dfa96fa3f7f.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!