bsd.lib.mk: Allow MACHINE_CPU for default expsym file.

This commit is contained in:
riastradh 2024-05-07 20:56:25 +00:00
parent 27fb837206
commit 2ea04e5047
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.lib.mk,v 1.403 2024/05/06 08:43:37 mrg Exp $
# $NetBSD: bsd.lib.mk,v 1.404 2024/05/07 20:56:25 riastradh Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@ -662,6 +662,8 @@ ${_LIB.so.full}: ${_MAINLIBDEPS}
# to the actual symbols is nonempty, and show the diff in that case.
.if exists(${.CURDIR}/${LIB}.${MACHINE_ARCH}.expsym)
LIB_EXPSYM?= ${LIB}.${MACHINE_ARCH}.expsym
.elif exists(${.CURDIR}/${LIB}.${MACHINE_CPU}.expsym)
LIB_EXPSYM?= ${LIB}.${MACHINE_CPU}.expsym
.elif exists(${.CURDIR}/${LIB}.expsym)
LIB_EXPSYM?= ${LIB}.expsym
.endif