]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
replace final links by direct copy
authorYann Collet <cyan@fb.com>
Thu, 10 Dec 2020 21:25:08 +0000 (13:25 -0800)
committerYann Collet <cyan@fb.com>
Thu, 10 Dec 2020 21:25:08 +0000 (13:25 -0800)
link can behave slightly differently from real binaries,
breaking a few scripts relying on "real binary" assumption.

lib/Makefile
programs/Makefile

index d04caf6e094e359308bfbf4f48ed99881790d5b2..869d76630e68f0c7782d4f7d291a672a50bb0957 100644 (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
index e525d8e072c941a221c343ebc5ff533be595391e..23fd007125c73ffde7eb04ec19991e0049b749c4 100644 (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