Allow ABIs to provide their own LIBC_ARCH in a more generic way. As a side
effect, this fixes the build on powerpc64. Reviewed by: imp
This commit is contained in:
parent
8bddaf9007
commit
f61ce56845
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211822
@ -5,10 +5,11 @@ SHLIBDIR?= /lib
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
# We have to special case powerpc and powerpc64, since they mostly have
|
||||
# the same source implementation. libc is very different due to large
|
||||
# ABI differences.
|
||||
.if ${MACHINE_ARCH} == "powerpc"
|
||||
# Pick the current architecture directory for libc. In general, this is
|
||||
# named MACHINE_CPUARCH, but some ABIs are different enough to require
|
||||
# their own libc, so allow a directory named MACHINE_ARCH to override this.
|
||||
|
||||
.if exists(${.CURDIR}/${MACHINE_ARCH})
|
||||
LIBC_ARCH=${MACHINE_ARCH}
|
||||
.else
|
||||
LIBC_ARCH=${MACHINE_CPUARCH}
|
||||
|
Loading…
Reference in New Issue
Block a user