Skip to content

Commit ca9a3b5

Browse files
authored
Build precompiled objects with -fPIC (#1388)
Makes them more compatible with more compilation modes.
1 parent 4c0e9a4 commit ca9a3b5

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed

ci/rebuild-libwit-bindgen-cabi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ EOF
9191
build() {
9292
file=$1
9393
$WASI_SDK_PATH/bin/clang crates/guest-rust/src/rt/$1.c \
94-
-O -c -o crates/guest-rust/src/rt/$1.o -mcpu=mvp
94+
-O -c -o crates/guest-rust/src/rt/$1.o -mcpu=mvp -fPIC
9595
# Remove the `producers` section. This appears to differ whether the host for
9696
# clang is either macOS or Linux. Not needed here anyway, so discard it to help
9797
# either host produce the same object.
100 Bytes
Binary file not shown.
36 Bytes
Binary file not shown.
64 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)