This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] jit: fix link on OS X and Solaris (PR jit/64089 and PR jit/84288)
- From: FX <fxcoudert at gmail dot com>
- To: David Malcolm <dmalcolm at redhat dot com>
- Cc: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>, gcc-patches at gcc dot gnu dot org, jit at gcc dot gnu dot org
- Date: Wed, 14 Feb 2018 18:28:28 +0100
- Subject: Re: [PATCH] jit: fix link on OS X and Solaris (PR jit/64089 and PR jit/84288)
- Authentication-results: sourceware.org; auth=none
- References: <78D7B2DA-5677-4211-9C4E-F7B1B5AB51B5@gmail.com> <1518556781-10049-1-git-send-email-dmalcolm@redhat.com>
> Does this fix the jit linker issues on OS X and Solaris?
The patch fails to bootstrap on x86_64-apple-darwin17. gcc/config.log says:
gcc_cv_ld_version_script=no
ld_version_script_option='--version-script’
gcc/Makefile says:
LD_VERSION_SCRIPT_OPTION = --version-script
LD_SONAME_OPTION = -install_name
which makes it try to link with:
-Wl,--version-script,../../trunk/gcc/jit/libgccjit.map \
-Wl,-install_name,libgccjit.so.0
which fails with: ld: unknown option: --version-script
I think the patch to gcc/configure.ac should be:
+AC_MSG_CHECKING(linker --version-script option)
+gcc_cv_ld_version_script=no
+ld_version_script_option=''
FX