mirror of
https://github.com/facebook/zstd.git
synced 2025-08-05 19:15:58 +03:00
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:
@@ -243,7 +243,7 @@ $(ZSTD_STATLIB): $(ZSTD_STATLIB_OBJ)
|
|||||||
$(AR) $(ARFLAGS) $@ $^
|
$(AR) $(ARFLAGS) $@ $^
|
||||||
|
|
||||||
libzstd.a: $(ZSTD_STATLIB)
|
libzstd.a: $(ZSTD_STATLIB)
|
||||||
ln -sf $< $@
|
cp -f $< $@
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -283,7 +283,7 @@ $(ZSTD_DYNLIB): $(ZSTD_DYNLIB_OBJ)
|
|||||||
ln -sf $@ libzstd.$(SHARED_EXT)
|
ln -sf $@ libzstd.$(SHARED_EXT)
|
||||||
|
|
||||||
$(LIBZSTD): $(ZSTD_DYNLIB)
|
$(LIBZSTD): $(ZSTD_DYNLIB)
|
||||||
ln -sf $< $@
|
cp -f $< $@
|
||||||
|
|
||||||
endif # ifndef BUILD_DIR
|
endif # ifndef BUILD_DIR
|
||||||
endif # if windows
|
endif # if windows
|
||||||
|
@@ -233,7 +233,7 @@ $(BUILD_DIR)/zstd : $(ZSTD_OBJ)
|
|||||||
$(CC) $(FLAGS) $^ -o $@$(EXT) $(LDFLAGS)
|
$(CC) $(FLAGS) $^ -o $@$(EXT) $(LDFLAGS)
|
||||||
|
|
||||||
zstd : $(BUILD_DIR)/zstd
|
zstd : $(BUILD_DIR)/zstd
|
||||||
ln -sf $< $@
|
cp -f $< $@
|
||||||
@echo zstd build completed
|
@echo zstd build completed
|
||||||
|
|
||||||
endif # BUILD_DIR
|
endif # BUILD_DIR
|
||||||
|
Reference in New Issue
Block a user