aboutsummaryrefslogtreecommitdiff
path: root/rescue
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2022-04-12 02:23:44 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2022-05-24 20:59:33 +0000
commit3aaed4cb8c6a7dd3441b3d89501a79581179e288 (patch)
tree1435810692a2546b15fa1668ee627e40e6469fac /rescue
parent4f79bd4a1a83577ddf1fd03b8692eac9cb715ad3 (diff)
downloadsrc-3aaed4cb8c6a7dd3441b3d89501a79581179e288.tar.gz
src-3aaed4cb8c6a7dd3441b3d89501a79581179e288.zip
Fix conflict between libnvpair and libnv when building rescue binaries.
Submitted by: hselasky Reviewed by: jhb Sponsored by: NVIDIA Networking MFC after: 3 weeks Differential revision: https://reviews.freebsd.org/D32551
Diffstat (limited to 'rescue')
-rw-r--r--rescue/rescue/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile
index 216656be36a9..3c758a41f294 100644
--- a/rescue/rescue/Makefile
+++ b/rescue/rescue/Makefile
@@ -137,8 +137,18 @@ CRUNCH_PROGS_usr.sbin+= zdb
CRUNCH_LIBS+= -l80211 -lalias -lcam -lncursesw -ldevstat -lipsec -llzma
.if ${MK_ZFS} != "no"
-CRUNCH_LIBS+= -lavl -lzpool -lzfs_core -lzfs -lnvpair -lpthread -luutil -lumem
-CRUNCH_LIBS+= -lbe -lzfsbootenv -lzutil -ltpool -lspl -licp_rescue
+CRUNCH_LIBS+= -lavl -lpthread -luutil -lumem -ltpool -lspl
+CRUNCH_LIBS_zfs+= ${LIBBE} \
+ ${LIBZPOOL} \
+ ${LIBZUTIL} \
+ ${LIBZFS} \
+ ${LIBZFS_CORE} \
+ ${LIBZFSBOOTENV} \
+ ${LIBICP_RESCUE} \
+ ${LIBNVPAIR}
+CRUNCH_LIBS_bectl+= ${CRUNCH_LIBS_zfs}
+CRUNCH_LIBS_zpool+= ${CRUNCH_LIBS_zfs}
+CRUNCH_LIBS_zdb+= ${CRUNCH_LIBS_zfs}
.else
# liblzma needs pthread
CRUNCH_LIBS+= -lpthread
@@ -235,6 +245,8 @@ CRUNCH_ALIAS_chown= chgrp
CRUNCH_LIBS+= ${OBJTOP}/lib/libifconfig/libifconfig.a
CRUNCH_BUILDOPTS+= CRUNCH_CFLAGS+=-I${OBJTOP}/lib/libifconfig
+CRUNCH_LIBS_ifconfig+= ${LIBNV}
+
CRUNCH_LIBS+= -lm
.if ${MK_ISCSI} != "no"