Skip to content

Commit d712e86

Browse files
committed
Use install command when installing wasm bins
Ensures correct permissions are set at destination.
1 parent 857fd4e commit d712e86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ $(EM_PKG_CONFIG_PATH)/%.pc: recipes/**/%.pc
6161

6262
$(DEFAULT_WASM_BINS_INST): $(DEFAULT_WASM_LIBS)
6363
@mkdir -p $(HOST)/bin
64-
cp "$(patsubst $(HOST)/bin/%,$(WASM)/bin/%,$@)" "$@"
64+
install "$(patsubst $(HOST)/bin/%,$(WASM)/bin/%,$@)" "$@"
6565

6666
$(OPTIONAL_WASM_BINS_INST): $(OPTIONAL_WASM_LIBS)
6767
@mkdir -p $(HOST)/bin
68-
cp "$(patsubst $(HOST)/bin/%,$(WASM)/bin/%,$@)" "$@"
68+
install "$(patsubst $(HOST)/bin/%,$(WASM)/bin/%,$@)" "$@"
6969

7070
.PHONY: clean-bins
7171
clean-bins:

0 commit comments

Comments
 (0)