https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089
--- Comment #10 from David Malcolm <dmalcolm at gcc dot gnu.org> --- FWIW, homebrew has a formula for building libgccjit on OS X: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/gcc.rb Currently it applies this patch: diff --git a/gcc/jit/Make-lang.in b/gcc/jit/Make-lang.in index 44d0750..4df2a9c 100644 --- a/gcc/jit/Make-lang.in +++ b/gcc/jit/Make-lang.in @@ -85,8 +85,7 @@ $(LIBGCCJIT_FILENAME): $(jit_OBJS) \ $(jit_OBJS) libbackend.a libcommon-target.a libcommon.a \ $(CPPLIB) $(LIBDECNUMBER) $(LIBS) $(BACKENDLIBS) \ $(EXTRA_GCC_OBJS) \ - -Wl,--version-script=$(srcdir)/jit/libgccjit.map \ - -Wl,-soname,$(LIBGCCJIT_SONAME) + -Wl,-install_name,$(LIBGCCJIT_SONAME) $(LIBGCCJIT_SONAME_SYMLINK): $(LIBGCCJIT_FILENAME) ln -sf $(LIBGCCJIT_FILENAME) $(LIBGCCJIT_SONAME_SYMLINK) along with this patch: https://gcc.gnu.org/ml/jit/2015-q3/msg00148.html which is in: trunk as r226882. gcc-5-branch as r226883.