replace final links by direct copy

link can behave slightly differently from real binaries,
breaking a few scripts relying on "real binary" assumption.
This commit is contained in:
Yann Collet 2020-12-10 13:25:08 -08:00
parent fe48742c69
commit c56723ab03
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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