void-packages/srcpkgs/zstd/patches/ldflags.patch

12 lines
338 B
Diff

--- a/programs/Makefile
+++ b/programs/Makefile
@@ -158,7 +158,7 @@
@echo "$(LZMA_MSG)"
@echo "$(LZ4_MSG)"
@echo LINK $@
- $(CC) $(FLAGS) $^ $(LDLIBS) -o $@$(EXT)
+ $(CC) $(FLAGS) $^ $(LDLIBS) -o $@$(EXT) $(LDFLAGS)
ifeq ($(HAVE_HASH),1)
SRCBIN_HASH = $(shell cat $(BUILD_DIR)/zstd$(EXT) 2> $(VOID) | $(HASH) | cut -f 1 -d " ")