Skip to content

Commit 5bb367c

Browse files
committed
Try llvm-objcopy
1 parent 557cec5 commit 5bb367c

File tree

1 file changed

+6
-4
lines changed
  • recipes/recipes_emscripten/octave

1 file changed

+6
-4
lines changed

recipes/recipes_emscripten/octave/build.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ export CFLAGS="${CFLAGS} --target=wasm32-unknown-emscripten"
44
export CXXFLAGS="${CXXFLAGS} --target=wasm32-unknown-emscripten"
55

66
# Octave overrides xerbla
7-
objcopy --strip-symbol=xerbla_ "${PREFIX}/lib/liblapack.a"
7+
llvm-objcopy --strip-symbol=xerbla_ "${PREFIX}/lib/liblapack.a"
88
# Blas should not define the following symbols
9-
for sym in lsame_ xerbla_ xerbla_array_; do
10-
objcopy --strip-symbol="${sym}" "${PREFIX}/lib/libblas.a"
11-
done
9+
llvm-objcopy \
10+
--strip-symbol=lsame_ \
11+
--strip-symbol=xerbla_ \
12+
--strip-symbol=xerbla_array_ \
13+
"${PREFIX}/lib/libblas.a"
1214

1315
# flang-new does not support emscripten flags.
1416
#

0 commit comments

Comments
 (0)