mirror of
https://github.com/opnsense/src.git
synced 2026-04-20 21:59:20 -04:00
r336019 introduced ${SRCTOP}/sys to the include paths in order to pull in a
new sys/{c,}nv.h. This is wrong, because the build tree's ABI isn't
guaranteed to match what's running on the host system.
Fix instead by removing -I${SRCTOP}/sys and installing the libnv headers
with `make -C lib/libnv includes`... this may or may not get re-worked in
the future so that a userland lib isn't installing includes from sys/.
Reported by: bdrewery
26 lines
410 B
Makefile
26 lines
410 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE=lib${LIB}
|
|
SHLIBDIR?= /lib
|
|
|
|
.include <src.opts.mk>
|
|
|
|
LIB= nv
|
|
SHLIB_MAJOR= 0
|
|
|
|
.PATH: ${SRCTOP}/sys/contrib/libnv ${SRCTOP}/sys/sys
|
|
CFLAGS+=-I${SRCTOP}/sys -I${.CURDIR}
|
|
|
|
SRCS= cnvlist.c
|
|
SRCS+= dnvlist.c
|
|
SRCS+= msgio.c
|
|
SRCS+= nvlist.c
|
|
SRCS+= nvpair.c
|
|
|
|
INCSDIR= ${INCLUDEDIR}/sys
|
|
INCS= ${SRCTOP}/sys/sys/cnv.h ${SRCTOP}/sys/sys/nv.h
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.lib.mk>
|