https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64296
Bug ID: 64296 Summary: link failure of libgccjit.so for "in tree" gmp/mpc/mpfr/isl Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: alfred.minarik.1 at aon dot at using "in tree" gmp/mpc/mpfr/isl (as following contrib/download_prerequisites) does not work with building jit. gcc is correctly configured with --enable-host-shared but this information is obviously not transferd into (or ignored by ?) gmp/mpc/mpfr/isl. Those static libraries are still build without -fPIC,resulting in relocation failures while linking libgccjit.so. am@linux:~/tools/gcc> LANG=C gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local2/gcc_4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /home/am/tools/gcc/gcc/configure --prefix=/usr/local2/gcc_4.9.2 --enable-languages=all,ada,go,obj-c++ Thread model: posix gcc version 4.9.2 (GCC) LANG="C" $GCCSRC_/configure --prefix=/usr/local2/gcc_exp --enable-languages=c,c++,jit --disable-multilib --enable-checking=release --enable-host-shared