FBSD: Fallback to $CC for assembler

FreeBSD 13 no longer ships with a standalone assembler (e.g.
/usr/bin/as). But clang can be used as an assembler, so just set AS to
$CC if we don't find an assembler.

Change-Id: I2a30e9ca8a3e2c200a5495e2f996bee27cbb2328
Reviewed-on: https://gerrit.openafs.org/15161
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
This commit is contained in:
Andrew Deason 2022-10-25 13:25:37 -05:00
parent 407eadbcd7
commit 1435b686a9

View File

@ -522,6 +522,14 @@ case $AFS_SYSNAME in
esac
AS_CASE([$AFS_SYSNAME],
[*_fbsd_*],
dnl FreeBSD 13+ no longer provides a standalone /usr/bin/as in
dnl the base system, but we can use the compiler (clang) as an
dnl assembler.
[AS_IF([test x"$AS" = xfalse],
[AS="$CC"])])
MT_CFLAGS="${MT_CFLAGS} -DAFS_PTHREAD_ENV"
AFS_LT_INIT