Skip to content

Commit e465362

Browse files
committed
Add WASM_FFLAGS Make variable when building stage 2 R
1 parent ac94dfc commit e465362

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

R/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ WASM_CFLAGS := $(WASM_CFLAGS)
3838
WASM_CFLAGS += $(WASM_OPT)
3939
WASM_CFLAGS += -fPIC
4040

41+
WASM_FFLAGS := $(WASM_FFLAGS)
42+
WASM_FFLAGS += --target=wasm32-unknown-emscripten
43+
WASM_FFLAGS += -O2
44+
WASM_FFLAGS += -fPIC
45+
4146
WASM_LDFLAGS := $(WASM_LDFLAGS)
4247
WASM_LDFLAGS += -fwasm-exceptions
4348
WASM_LDFLAGS += -s SUPPORT_LONGJMP=wasm
@@ -160,7 +165,7 @@ $(BUILD)/state/R-$(R_VERSION)/r-stage2-configured: $(BUILD)/state/R-$(R_VERSION)
160165
CFLAGS="$(STAGE2_CFLAGS)" \
161166
LDFLAGS="$(STAGE2_LDFLAGS)" \
162167
LIBnn="lib" \
163-
FFLAGS="-fPIC" \
168+
FFLAGS="$(WASM_FFLAGS)" \
164169
FPICFLAGS="-fPIC" \
165170
FC="$(EMFC)" \
166171
emconfigure ../configure \

0 commit comments

Comments
 (0)