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:
parent
fe48742c69
commit
c56723ab03
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user