fix: cflags emitted by wasmer config --pkg-config are now correct

Closes #1989
This commit is contained in:
jubianchi
2021-02-08 12:56:42 +01:00
parent 6711a364a9
commit 835b50094b
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
### Fixed ### Fixed
- [#2097](https://github.com/wasmerio/wasmer/pull/2097) Fix how string's length is computed in `wasm_cpu_features_add` in the C API. - [#2097](https://github.com/wasmerio/wasmer/pull/2097) Fix how string's length is computed in `wasm_cpu_features_add` in the C API.
- [#2101](https://github.com/wasmerio/wasmer/pull/2101) cflags emitted by `wasmer config --pkg-config` are now correct.
## 1.0.2 - 2021-02-04 ## 1.0.2 - 2021-02-04

View File

@@ -56,7 +56,7 @@ impl Config {
let bindir = prefix.join("bin").display().to_string(); let bindir = prefix.join("bin").display().to_string();
let includedir = prefix.join("include").display().to_string(); let includedir = prefix.join("include").display().to_string();
let libdir = prefix.join("lib").display().to_string(); let libdir = prefix.join("lib").display().to_string();
let cflags = format!("-I{}/wasmer", includedir); let cflags = format!("-I{}", includedir);
let libs = format!("-L{} -lwasmer", libdir); let libs = format!("-L{} -lwasmer", libdir);
if self.pkg_config { if self.pkg_config {