Skip to content

Commit

Permalink
Merge #2743
Browse files Browse the repository at this point in the history
2743: Fix generation of wasmer.pc file r=Amanieu a=Amanieu

Partially fixes #2740 

Co-authored-by: Amanieu d'Antras <[email protected]>
  • Loading branch information
bors[bot] and Amanieu authored Jan 4, 2022
2 parents 7701ea9 + 1b19cf4 commit a9da483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ install-misc:
install-pkgconfig:
# Make sure WASMER_INSTALL_PREFIX is set during build
unset WASMER_DIR; \
if pc="$$(target/release/wasmer config --pkg-config 1>/dev/null 2>/dev/null)"; then \
if pc="$$(target/release/wasmer config --pkg-config 2>/dev/null)"; then \
echo "$$pc" | install -Dm644 /dev/stdin "$(DESTDIR)"/lib/pkgconfig/wasmer.pc; \
else \
echo 1>&2 "WASMER_INSTALL_PREFIX was not set during build, not installing wasmer.pc"; \
Expand Down
5 changes: 3 additions & 2 deletions PACKAGING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
```

* `make install` respects `DESTDIR`, but `prefix` must be configured
with `WASMER_INSTALL_PREFIX`, e.g.:
with `WASMER_INSTALL_PREFIX`. Note that `DESTDIR` must include
`WASMER_INSTALL_PREFIX`, e.g.:

```sh
export WASMER_INSTALL_PREFIX=/usr
make
DESTDIR=.../usr make install
DESTDIR=/tmp/staging/usr make install
```

* In case you must build/install directly with `cargo`, make sure to
Expand Down

0 comments on commit a9da483

Please sign in to comment.