mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
In9fae47666zfsd got a libspl dependency to avoid undefined references. However that workaround did not help external consumers of libzfs_core. Fix all missing dependencies lld 13 and the rtld complain about. Reviewed by: freqlabs, markj (cherry picked from commit9e9c651cac)
31 lines
804 B
Makefile
31 lines
804 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/contrib/openzfs/module/nvpair
|
|
.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libnvpair
|
|
|
|
LIB= nvpair
|
|
LIBADD= spl
|
|
|
|
PACKAGE= runtime
|
|
# user
|
|
SRCS= libnvpair.c \
|
|
libnvpair_json.c \
|
|
nvpair_alloc_system.c
|
|
# kernel
|
|
SRCS+= nvpair_alloc_fixed.c \
|
|
nvpair.c \
|
|
fnvpair.c
|
|
|
|
WARNS?= 2
|
|
CFLAGS+= -DIN_BASE -DHAVE_RPC_TYPES
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
|
|
CFLAGS+= -I${SRCTOP}/sys
|
|
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
|
|
CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
|
|
CFLAGS+= -DHAVE_ISSETUGID -DHAVE_CONFIG_H -DHAVE_XDR_BYTESREC
|
|
|
|
|
|
CFLAGS.nvpair.c+= -UHAVE_RPC_TYPES
|
|
.include <bsd.lib.mk>
|