Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F97938139
D41180.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41180.diff
View Options
diff --git a/Makefile.inc1 b/Makefile.inc1
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -857,9 +857,12 @@
XCFLAGS+= ${BFLAGS}
.endif
-.if ${MK_LIB32} == "yes"
-_LIBCOMPATS+= 32
+.include "share/mk/bsd.compat.pre.mk"
+.for LIBCOMPAT in ${_ALL_LIBCOMPATS}
+.if ${MK_LIB${LIBCOMPAT}} == "yes"
+_LIBCOMPATS+= ${LIBCOMPAT}
.endif
+.endfor
.include "Makefile.libcompat"
# META_MODE normally ignores host file changes since every build updates
@@ -3255,8 +3258,9 @@
@cd ${.CURDIR}; \
${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \
-V "OLD_FILES:ts\n" -V "OLD_FILES:Musr/share/*.gz:R:ts\n" \
- -V "OLD_FILES:Mlib/*.so.*:S,^lib,usr/lib32,:ts\n" \
- -V "OLD_FILES:Musr/lib/*:S,^usr/lib,usr/lib32,:ts\n" | sort
+ ${_ALL_libcompats:@v@-V "OLD_FILES:Mlib/*.so.*:S,^lib,usr/lib$v,:ts\n"@} \
+ ${_ALL_libcompats:@v@-V "OLD_FILES:Musr/lib/*:S,^usr/lib,usr/lib$v,:ts\n"@} | \
+ sort
delete-old-files: .PHONY
@echo ">>> Removing old files (only deletes safe to delete libs)"
@@ -3321,9 +3325,10 @@
@cd ${.CURDIR}; \
${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \
-V "OLD_LIBS:ts\n" -V "MOVED_LIBS:ts\n" \
- -V "OLD_LIBS:Mlib/*:S,^lib,usr/lib32,:ts\n" \
- -V "OLD_LIBS:Musr/lib/*:S,^usr/lib,usr/lib32,:ts\n" \
- -V "OLD_LIBS:Mlib/casper/*:S,^lib/casper,usr/lib32,:ts\n" | sort
+ ${_ALL_libcompats:@v@-V "OLD_LIBS:Mlib/*:S,^lib,usr/lib$v,:ts\n"@} \
+ ${_ALL_libcompats:@v@-V "OLD_LIBS:Musr/lib/*:S,^usr/lib,usr/lib$v,:ts\n"@} | \
+ ${_ALL_libcompats:@v@-V "OLD_LIBS:Mlib/casper/*:S,^lib/casper,usr/lib$v,:ts\n"@} | \
+ sort
delete-old-libs: .PHONY
@echo ">>> Removing old libraries"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 2, 7:21 PM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13383530
Default Alt Text
D41180.diff (1 KB)
Attached To
Mode
D41180: Makefile.inc1: Automatically generate _LIBCOMPATS and list-old-* libcompats
Attached
Detach File
Event Timeline
Log In to Comment