1
- export FLIBS=" -lFortranRuntime"
2
- export FFLAGS=" ${FFLAGS} --target=wasm32-unknown-emscripten"
3
- export CFLAGS=" ${CFLAGS} --target=wasm32-unknown-emscripten"
4
- export CXXFLAGS=" ${CXXFLAGS} --target=wasm32-unknown-emscripten"
5
-
6
- # Octave overrides xerbla
7
- llvm-objcopy --strip-symbol=xerbla_ " ${PREFIX} /lib/liblapack.a"
8
- # Blas should not define the following symbols
9
- llvm-objcopy \
10
- --strip-symbol=lsame_ \
11
- --strip-symbol=xerbla_ \
12
- --strip-symbol=xerbla_array_ \
13
- " ${PREFIX} /lib/libblas.a"
14
-
15
1
# flang-new does not support emscripten flags.
16
2
#
17
3
# Future solution when flang is more mature:
@@ -34,6 +20,15 @@ export F77="${PWD}/flang-new-wrap"
34
20
# Remove spaces in `-s OPTION` from emscripten to avoid confusion in flang
35
21
export LDFLAGS=" $( echo " ${LDFLAGS} " | sed -E ' s/-s +/-s/g' ) "
36
22
23
+ export FLIBS=" -lFortranRuntime"
24
+ export FFLAGS=" ${FFLAGS} --target=wasm32-unknown-emscripten"
25
+ export CFLAGS=" ${CFLAGS} --target=wasm32-unknown-emscripten"
26
+ export CXXFLAGS=" ${CXXFLAGS} --target=wasm32-unknown-emscripten"
27
+
28
+ # Octave overrides xerbla from Lapack.
29
+ # Both Blas and Lapack define xerbla zerbla_array lsame.
30
+ export LDFLAGS=" ${LDFLAGS} -Wl,--allow-multiple-definition"
31
+
37
32
# Force disable pthread
38
33
sed -i ' s/ax_pthread_ok=yes/ax_pthread_ok=no/' configure
39
34
export ac_cv_header_pthread_h=no
0 commit comments