From c56723ab0333d7ac5a460ae623339c855afa5e14 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 10 Dec 2020 13:25:08 -0800 Subject: [PATCH] replace final links by direct copy link can behave slightly differently from real binaries, breaking a few scripts relying on "real binary" assumption. --- lib/Makefile | 4 ++-- programs/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index d04caf6e..869d7663 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -243,7 +243,7 @@ $(ZSTD_STATLIB): $(ZSTD_STATLIB_OBJ) $(AR) $(ARFLAGS) $@ $^ libzstd.a: $(ZSTD_STATLIB) - ln -sf $< $@ + cp -f $< $@ endif @@ -283,7 +283,7 @@ $(ZSTD_DYNLIB): $(ZSTD_DYNLIB_OBJ) ln -sf $@ libzstd.$(SHARED_EXT) $(LIBZSTD): $(ZSTD_DYNLIB) - ln -sf $< $@ + cp -f $< $@ endif # ifndef BUILD_DIR endif # if windows diff --git a/programs/Makefile b/programs/Makefile index e525d8e0..23fd0071 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -233,7 +233,7 @@ $(BUILD_DIR)/zstd : $(ZSTD_OBJ) $(CC) $(FLAGS) $^ -o $@$(EXT) $(LDFLAGS) zstd : $(BUILD_DIR)/zstd - ln -sf $< $@ + cp -f $< $@ @echo zstd build completed endif # BUILD_DIR