From eeb985f387222c6bb2c443ce9d57057d4b356a71 Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Tue, 23 Mar 2021 03:48:12 +0000 Subject: [PATCH] fixes for illumos build --- Makefile | 3 ++- pivy-zfs.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4b1b6ee..6468a03 100644 --- a/Makefile +++ b/Makefile @@ -135,6 +135,7 @@ ifeq ($(SYSTEM), SunOS) PCSC_LIBS = $(shell pkg-config --libs libpcsclite) CRYPTO_CFLAGS = -I$(LIBRESSL_INC) CRYPTO_LIBS = -L$(LIBRESSL_LIB) -lcrypto -pthread + CRYPTO_LDFLAGS = -L$(LIBRESSL_LIB) ZLIB_CFLAGS = ZLIB_LIBS = -lz RDLINE_CFLAGS = @@ -143,7 +144,7 @@ ifeq ($(SYSTEM), SunOS) SYSTEM_CFLAGS += -Du_int8_t=uint8_t -Du_int16_t=uint16_t \ -Du_int32_t=uint32_t -Du_int64_t=uint64_t SYSTEM_LIBS = -L$(PROTO_AREA)/usr/lib/64 -lssp -lsocket -lnsl - SYSTEM_LDFLAGS = -m64 + SYSTEM_LDFLAGS = -m64 -L$(PROTO_AREA)/usr/lib/64 HAVE_ZFS := $(USE_ZFS) LIBZFS_CFLAGS = -I$(ILLUMOS_SRC)/uts/common/fs/zfs # for spa_impl.h LIBZFS_CFLAGS += -I$(ILLUMOS_SRC)/common/zfs # for zfeature_common.h diff --git a/pivy-zfs.c b/pivy-zfs.c index 2ba247b..fc8e7d2 100644 --- a/pivy-zfs.c +++ b/pivy-zfs.c @@ -595,7 +595,7 @@ cmd_genopt(const char *cmd, const char *subcmd, const char *opt, newargv[newargc++] = subcmd; newargv[newargc++] = opt; - newargv[newargc++] = "encryption=on"; + newargv[newargc++] = "encryption=aes-256-gcm"; newargv[newargc++] = opt; newargv[newargc++] = "keyformat=raw";