From 835b50094b033db48657c35c64010aa438461f74 Mon Sep 17 00:00:00 2001 From: jubianchi Date: Mon, 8 Feb 2021 12:56:42 +0100 Subject: [PATCH] fix: cflags emitted by `wasmer config --pkg-config` are now correct Closes #1989 --- CHANGELOG.md | 1 + lib/cli/src/commands/config.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cacba638ea..6b148ac22f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### 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. +- [#2101](https://github.com/wasmerio/wasmer/pull/2101) cflags emitted by `wasmer config --pkg-config` are now correct. ## 1.0.2 - 2021-02-04 diff --git a/lib/cli/src/commands/config.rs b/lib/cli/src/commands/config.rs index f96dcc8e035..84c25c088ec 100644 --- a/lib/cli/src/commands/config.rs +++ b/lib/cli/src/commands/config.rs @@ -56,7 +56,7 @@ impl Config { let bindir = prefix.join("bin").display().to_string(); let includedir = prefix.join("include").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); if self.pkg_config {