Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107252732
D33742.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
819 B
Referenced Files
None
Subscribers
None
D33742.diff
View Options
diff --git a/share/mk/bsd.endian.mk b/share/mk/bsd.endian.mk
--- a/share/mk/bsd.endian.mk
+++ b/share/mk/bsd.endian.mk
@@ -15,6 +15,16 @@
TARGET_ENDIANNESS= 4321
CAP_MKDB_ENDIAN= -b
LOCALEDEF_ENDIAN= -b
-.else
+.elif ${.MAKE.OS} == "FreeBSD"
.error "Don't know the endian of this architecture"
+.else
+#
+# During bootstrapping on !FreeBSD OSes, we need to define some value. Short of
+# having an exhaustive list for all variants of Linux and MacOS we simply do not
+# set TARGET_ENDIANNESS and poison the other variables. They should be unused
+# during the bootstrap phases (apart from one place that's adequately protected
+# in bsd.compiler.mk) where we're building the bootstrap tools.
+#
+CAP_MKDB_ENDIAN= -B # Poisoned value, invalid flags for both cap_mkdb
+LOCALEDEF_ENDIAN= -B # and localedef.
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 6:55 PM (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15772190
Default Alt Text
D33742.diff (819 B)
Attached To
Mode
D33742: bsd.endian.mk: Allow for the cross building case
Attached
Detach File
Event Timeline
Log In to Comment