Skip to content

Commit

Permalink
Add WASM_FFLAGS Make variable when building stage 2 R
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Dec 7, 2023
1 parent 45321df commit e0374db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ WASM_CFLAGS := $(WASM_CFLAGS)
WASM_CFLAGS += $(WASM_OPT)
WASM_CFLAGS += -fPIC

WASM_FFLAGS := $(WASM_FFLAGS)
WASM_FFLAGS += --target=wasm32-unknown-emscripten
WASM_FFLAGS += -O2
WASM_FFLAGS += -fPIC

WASM_LDFLAGS := $(WASM_LDFLAGS)
WASM_LDFLAGS += -fwasm-exceptions
WASM_LDFLAGS += -s SUPPORT_LONGJMP=wasm
Expand Down Expand Up @@ -160,7 +165,7 @@ $(BUILD)/state/R-$(R_VERSION)/r-stage2-configured: $(BUILD)/state/R-$(R_VERSION)
CFLAGS="$(STAGE2_CFLAGS)" \
LDFLAGS="$(STAGE2_LDFLAGS)" \
LIBnn="lib" \
FFLAGS="-fPIC" \
FFLAGS="$(WASM_FFLAGS)" \
FPICFLAGS="-fPIC" \
FC="$(EMFC)" \
emconfigure ../configure \
Expand Down

0 comments on commit e0374db

Please sign in to comment.