wasmedge: fix build (#61860) (#10934)

* Add `$origin` in rpath for missing library.
* Update unit test version

Signed-off-by: Shen-Ta Hsieh <beststeve@secondstate.io>
This commit is contained in:
Shen-Ta Hsieh(BestSteve) 2023-09-11 22:34:35 +08:00 committed by GitHub
parent 7c3296b6bc
commit 0707607b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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 -