mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 11:20:58 +01:00
3abde52372
libkafs5 needs a header from libkrb5, it includes this from ${.OBJDIR}/mumble, this used to work fine as long as you happen to have a krb_err.h in your base system, this doesn't work for bootstrapping or using a cross-compiler with a different sysroot. This is just a best-effort bandaid, sufficient parallelism can still break it. Fix a SRCS override that dropped krb5_err.h. Discussed with: stas
41 lines
871 B
Makefile
41 lines
871 B
Makefile
# $FreeBSD$
|
|
|
|
LIB= kafs5
|
|
LDADD= -lasn1 -lroken -lkrb5
|
|
LDFLAGS= -Wl,--no-undefined
|
|
DPADD= ${LIBASN1} ${LIBKRB5} ${LIBROKEN}
|
|
INCS= kafs.h
|
|
MAN= kafs5.3
|
|
VERSION_MAP= ${.CURDIR}/version.map
|
|
|
|
MLINKS= kafs5.3 k_afs_cell_of_file.3 \
|
|
kafs5.3 k_hasafs.3 \
|
|
kafs5.3 k_pioctl.3 \
|
|
kafs5.3 k_setpag.3 \
|
|
kafs5.3 k_unlog.3 \
|
|
kafs5.3 kafs.3 \
|
|
kafs5.3 kafs_set_verbose.3 \
|
|
kafs5.3 kafs_settoken.3 \
|
|
kafs5.3 kafs_settoken5.3 \
|
|
kafs5.3 kafs_settoken_rxkad.3 \
|
|
kafs5.3 krb5_afslog.3 \
|
|
kafs5.3 krb5_afslog_uid.3 \
|
|
kafs5.3 krb_afslog.3 \
|
|
kafs5.3 krb_afslog_uid.3
|
|
|
|
SRCS= afssys.c afskrb5.c common.c krb5_err.h
|
|
|
|
CFLAGS+= -I${KRB5DIR}/lib/kafs \
|
|
-I${KRB5DIR}/lib/krb5 \
|
|
-I${.OBJDIR}/../libkrb5/ \
|
|
-I${KRB5DIR}/lib/roken
|
|
|
|
CLEANFILES= kafs5.3
|
|
|
|
kafs5.3: kafs.3
|
|
sed -e 's/libkafs, -lkafs/libkafs5, -lkafs5/g' ${.ALLSRC} >${.TARGET}
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.PATH: ${KRB5DIR}/lib/kafs
|