Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144192735
D52340.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
612 B
Referenced Files
None
Subscribers
None
D52340.diff
View Options
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -391,8 +391,11 @@
.else
MACHINE_ABI+= hard-float
.endif
-# Currently all 64-bit architectures include 64 in their name (see arch(7)).
-.if ${MACHINE_ARCH:M*64*}
+# Currently all 64-bit FreeBSD architectures include 64 in their name
+# (see arch(7)). We need a special case for cross-building from macOS
+# (which uses arm64/arm).
+.if ${MACHINE_ARCH:M*64*} || \
+ (defined(BOOTSTRAPPING) && ${.MAKE.OS} == "Darwin" && ${MACHINE} == "arm64")
MACHINE_ABI+= long64
.else
MACHINE_ABI+= long32
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 7, 6:22 AM (10 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28453102
Default Alt Text
D52340.diff (612 B)
Attached To
Mode
D52340: share/mk: Fix a heuristic in bsd.cpu.mk
Attached
Detach File
Event Timeline
Log In to Comment