Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108239082
D41178.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
849 B
Referenced Files
None
Subscribers
None
D41178.diff
View Options
diff --git a/share/mk/bsd.compat.mk b/share/mk/bsd.compat.mk
--- a/share/mk/bsd.compat.mk
+++ b/share/mk/bsd.compat.mk
@@ -3,7 +3,7 @@
.if !targets(__<${_this:T}>__)
__<${_this:T}>__:
-_ALL_LIBCOMPATS:= 32
+.include <bsd.compat.pre.mk>
.if defined(_LIBCOMPATS)
COMPAT_ARCH?= ${TARGET_ARCH}
diff --git a/share/mk/bsd.compat.pre.mk b/share/mk/bsd.compat.pre.mk
new file mode 100644
--- /dev/null
+++ b/share/mk/bsd.compat.pre.mk
@@ -0,0 +1,13 @@
+.if !targets(__<${_this:T}>__)
+__<${_this:T}>__:
+
+_ALL_LIBCOMPATS:= 32
+
+_ALL_libcompats:= ${_ALL_LIBCOMPATS:tl}
+
+# List of LIBCOMPAT libcompat pairs to avoid repeating this ugly expression.
+# Can be used as: .for LIBCOMPAT libcompat in ${_ALL_LIBCOMPATS_libcompats}
+_ALL_LIBCOMPATS_libcompats:= \
+ ${_ALL_LIBCOMPATS:range:@i@${_ALL_LIBCOMPATS:[$i]} ${_ALL_libcompats:[$i]}@}
+
+.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 12:04 AM (20 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16068375
Default Alt Text
D41178.diff (849 B)
Attached To
Mode
D41178: bsd.compat.mk Extract _ALL_LIBCOMPATS and add related variables
Attached
Detach File
Event Timeline
Log In to Comment