https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70443

            Bug ID: 70443
           Summary: gccjit fails to build with in-tree dependencies
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: hp at tmm dot cx
  Target Milestone: ---

When trying to build gccjit with in-tree dependencies (fetched with
contrib/download_prerequisites) linking will fail as the in-tree dependencies
are built without -fPIC.

/usr/bin/ld: /home/hp/src/gcc-jit/./mpc/src/.libs/libmpc.a(acos.o): relocation
R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared
object; recompile with -fPIC

shared libraries should probably be built when --with-host-shared is enabled.

Reply via email to