diff options
Diffstat (limited to 'archivers/zstd/patches/patch-programs_Makefile')
-rw-r--r-- | archivers/zstd/patches/patch-programs_Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/archivers/zstd/patches/patch-programs_Makefile b/archivers/zstd/patches/patch-programs_Makefile new file mode 100644 index 00000000000..4f207cc97e8 --- /dev/null +++ b/archivers/zstd/patches/patch-programs_Makefile @@ -0,0 +1,24 @@ +$NetBSD: patch-programs_Makefile,v 1.4 2018/10/22 15:28:03 adam Exp $ + +Use zstd shared library. + +--- programs/Makefile.orig 2018-10-17 03:58:52.000000000 +0000 ++++ programs/Makefile +@@ -160,7 +160,7 @@ $(ZSTDDECOMP_O): CFLAGS += $(ALIGN_LOOP) + zstd : CPPFLAGS += $(THREAD_CPP) $(ZLIBCPP) $(LZMACPP) $(LZ4CPP) + zstd : LDFLAGS += $(THREAD_LD) $(ZLIBLD) $(LZMALD) $(LZ4LD) $(DEBUGFLAGS_LD) + zstd : CPPFLAGS += -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT) +-zstd : $(ZSTDLIB_FILES) zstdcli.o fileio.o bench.o datagen.o dibio.o ++zstd : zstdcli.o fileio.o bench.o datagen.o dibio.o + @echo "$(THREAD_MSG)" + @echo "$(ZLIB_MSG)" + @echo "$(LZMA_MSG)" +@@ -168,7 +168,7 @@ zstd : $(ZSTDLIB_FILES) zstdcli.o fileio + ifneq (,$(filter Windows%,$(OS))) + windres/generate_res.bat + endif +- $(CC) $(FLAGS) $^ $(RES_FILE) -o $@$(EXT) $(LDFLAGS) ++ $(CC) $(FLAGS) $^ $(RES_FILE) -o $@$(EXT) $(LDFLAGS) -L$(ZSTDDIR) -lzstd + + .PHONY: zstd-release + zstd-release: DEBUGFLAGS := -DBACKTRACE_ENABLE=0 |