From 0707607b81b28f87ff1d5fe8d6a9e9405d6d42d5 Mon Sep 17 00:00:00 2001 From: "Shen-Ta Hsieh(BestSteve)" Date: Mon, 11 Sep 2023 22:34:35 +0800 Subject: [PATCH] wasmedge: fix build (#61860) (#10934) * Add `$origin` in rpath for missing library. * Update unit test version Signed-off-by: Shen-Ta Hsieh --- projects/wasmedge/Dockerfile | 2 +- projects/wasmedge/build.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/wasmedge/Dockerfile b/projects/wasmedge/Dockerfile index 588d76acf..7eb97b3a9 100644 --- a/projects/wasmedge/Dockerfile +++ b/projects/wasmedge/Dockerfile @@ -29,7 +29,7 @@ RUN git clone https://github.com/WasmEdge/WasmEdge.git ADD "https://api.github.com/repos/second-state/WasmEdge-unittest/commits?per_page=1&sha=wasm-dev-0.11.0" latest_commit RUN rm latest_commit -RUN git clone --branch wasm-dev-0.11.0 https://github.com/second-state/WasmEdge-unittest.git +RUN git clone --branch wasm-dev-0.13.0 https://github.com/second-state/WasmEdge-unittest.git COPY build.sh $SRC/ WORKDIR $SRC diff --git a/projects/wasmedge/build.sh b/projects/wasmedge/build.sh index 3ec489cd5..0b48cf87f 100644 --- a/projects/wasmedge/build.sh +++ b/projects/wasmedge/build.sh @@ -35,6 +35,7 @@ cmake -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo \ . ninja -C build cp -a build/lib/api/libwasmedge*.so* build/tools/fuzz/wasmedge-fuzz* "$OUT"/ +patchelf --set-rpath \$ORIGIN "$OUT"/libwasmedge*.so* cd utils/corpus/po zip -9 "$OUT/wasmedge-fuzzpo_seed_corpus.zip" -R '*.txt' cd -