Skip to content

Commit efe367d

Browse files
committed
Vendor newer config.sub for emscripten support in dependencies
Upstream config.sub supports emscripten as of three hours ago [1]. However, this file is generally bundled in the tarballs of our dependencies, so it'll be some time until they have caught up. In the meantime, we'll have to patch in the newer config.sub to be able to build our dependencies against emscripten. Since all autotools-based projects can use the same emscripten, we distribute the file itself rather than trying to maintain patch files for whatever version of config.sub our dependencies happen to ship. It's likely that some of the other dependencies will also need this, but for now I've only added it to pcre/gmp/mpfr, which have been confirmed to work when built with emscripten. We can add this patch to other dependencies as they get enabled on the emscripten port. [1] http://git.savannah.gnu.org/cgit/config.git/commit/?id=b3914f8d5588d1f9ce2089cf711119653fe469fc)
1 parent 2931072 commit efe367d

File tree

4 files changed

+1794
-0
lines changed

4 files changed

+1794
-0
lines changed

deps/gmp.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ $(SRCCACHE)/gmp-$(GMP_VER)/source-extracted: $(SRCCACHE)/gmp-$(GMP_VER).tar.bz2
1818
echo 1 > $@
1919

2020
$(SRCCACHE)/gmp-$(GMP_VER)/build-patched: $(SRCCACHE)/gmp-$(GMP_VER)/source-extracted
21+
cp $(SRCDIR)/patches/config.sub $(SRCCACHE)/gmp-$(GMP_VER)/configfsf.sub
2122
cd $(dir $@) && patch < $(SRCDIR)/patches/gmp-exception.patch
2223
echo 1 > $@
2324

deps/mpfr.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ $(SRCCACHE)/mpfr-$(MPFR_VER).tar.bz2: | $(SRCCACHE)
3030
$(SRCCACHE)/mpfr-$(MPFR_VER)/source-extracted: $(SRCCACHE)/mpfr-$(MPFR_VER).tar.bz2
3131
$(JLCHECKSUM) $<
3232
cd $(dir $<) && $(TAR) -jxf $<
33+
cp $(SRCDIR)/patches/config.sub $(SRCCACHE)/mpfr-$(MPFR_VER)/config.sub
3334
touch -c $(SRCCACHE)/mpfr-$(MPFR_VER)/configure # old target
3435
echo 1 > $@
3536

0 commit comments

Comments
 (0)