Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2024 18:53:33 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9622dc05ae11 - main - zfsbootcfg: Remove bogus CFLAGS
Message-ID:  <202402121853.41CIrXv1030266@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=9622dc05ae11b145f1602fd0bb1fd6509c074b00

commit 9622dc05ae11b145f1602fd0bb1fd6509c074b00
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-12 18:44:22 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-02-12 18:44:22 +0000

    zfsbootcfg: Remove bogus CFLAGS
    
    When using the zfsbootcfg library, we're talking only to it, not to the
    rest of ZFS, nor are we using anything that needs access to the ZFS
    compilation environment. Remove all the compiling OpenZFS itself flags.
    
    Sponsored by:           Netflix
    Reviewed by:            kevans
    Differential Revision:  https://reviews.freebsd.org/D43823
---
 sbin/zfsbootcfg/Makefile | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/sbin/zfsbootcfg/Makefile b/sbin/zfsbootcfg/Makefile
index 3d5589dcee48..1833fc542ce0 100644
--- a/sbin/zfsbootcfg/Makefile
+++ b/sbin/zfsbootcfg/Makefile
@@ -1,19 +1,6 @@
-
 PROG=	zfsbootcfg
 MAN=	zfsbootcfg.8
 
 LIBADD+=zfsbootenv
 
-CFLAGS+= -DIN_BASE
-CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
-CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd
-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+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include
-CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
-CFLAGS+= -DHAVE_ISSETUGID
-CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h
-
 .include <bsd.prog.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402121853.41CIrXv1030266>