File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
# webR (development version)
2
2
3
+ ## Bug Fixes
4
+
5
+ * (Regression, again) Fix linking to the FreeType library when building webR (See #504 for details).
6
+
3
7
# webR 0.5.3
4
8
5
9
## Bug Fixes
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ STAGE2_LDFLAGS += $(WASM_OPT)
102
102
STAGE2_LDFLAGS += -L$(WASM ) /lib
103
103
STAGE2_LDFLAGS += -fwasm-exceptions
104
104
STAGE2_LDFLAGS += -s SUPPORT_LONGJMP=wasm
105
+ STAGE2_LDFLAGS += --use-port=freetype # See r-wasm/webr#504, 56069e2
105
106
106
107
STAGE2_FFLAGS := $(STAGE2_FFLAGS )
107
108
STAGE2_FFLAGS += --target=wasm32-unknown-emscripten
@@ -207,6 +208,10 @@ $(BUILD)/state/R-$(R_VERSION)/r-stage2: $(BUILD)/state/R-$(R_VERSION)/r-stage1 $
207
208
sed -i.bak -e ':m' -e 's/-lz//2' -e 't m' -e ':n' -e 's/-lpng16//2' -e 't n' \
208
209
$(R_SOURCE)/build/src/library/grDevices/src/cairo/Makefile
209
210
rm $(R_SOURCE)/build/src/library/grDevices/src/cairo/Makefile.bak
211
+ # -lz also provided by --use-port=freetype linking. See r-wasm/webr#504
212
+ sed -i.bak -e '/^LIBS =/s/-lz //' $(R_SOURCE)/build/Makeconf
213
+ rm $(R_SOURCE)/build/Makeconf.bak
214
+ # Build R
210
215
cd $(STAGE2_BUILD) && $(MAKE_WASM) -j $(NPROCS) R
211
216
mkdir -p $(R_SOURCE)/build/doc
212
217
cd $(R_SOURCE)/build/doc && touch NEWS.pdf R.1 Rscript.1
You can’t perform that action at this time.
0 commit comments