From: Yann Collet Date: Thu, 10 Dec 2020 21:25:08 +0000 (-0800) Subject: replace final links by direct copy X-Git-Tag: v1.4.7~5^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c56723ab0333d7ac5a460ae623339c855afa5e14;p=thirdparty%2Fzstd.git replace final links by direct copy link can behave slightly differently from real binaries, breaking a few scripts relying on "real binary" assumption. --- diff --git a/lib/Makefile b/lib/Makefile index d04caf6e0..869d76630 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 e525d8e07..23fd00712 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