summaryrefslogtreecommitdiff
path: root/Makefile.cross
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2019-10-14 14:36:50 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2019-10-14 14:36:50 +0000
commitc99a336f5698d3a67928ec3a9360338ced1207d3 (patch)
treea57e3214671420a6bf8223d2f6ff154edb88dcad /Makefile.cross
parent569f35a2ff07950ab1c1e6f5268f75f1f58c355f (diff)
powerpc cross-compilation on 64-bit hosts also appears to be safe.
Diffstat (limited to 'Makefile.cross')
-rw-r--r--Makefile.cross4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.cross b/Makefile.cross
index cdd610049ac..f0b0523c850 100644
--- a/Makefile.cross
+++ b/Makefile.cross
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.cross,v 1.102 2019/10/14 14:32:26 patrick Exp $
+# $OpenBSD: Makefile.cross,v 1.103 2019/10/14 14:36:49 patrick Exp $
cross-tools: cross-includes cross-binutils cross-gcc cross-lib
cross-distrib: cross-tools cross-bin cross-share cross-sys cross-etc-root-var
@@ -141,6 +141,8 @@ cross-env:
${CROSSDIRS}:
.if ${TARGET_ARCH} == "arm" && ${MACHINE_IS_LP64} == "yes"
# this config is allowed
+.elif ${TARGET_ARCH} == "powerpc" && ${MACHINE_IS_LP64} == "yes"
+ # this config is allowed
.elif ${TARGET_IS_LP64} != ${MACHINE_IS_LP64}
@echo "host and target have different size longs"
@echo "cross compiler generates bad code; aborting"; exit 1