This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix -findirect-dispatch Java failures on SPARC/Linux


On 12/06/2009 11:08 AM, Andrew Haley wrote:
Eric Botcazou wrote:
The problem is

LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"

but you cannot compile with -fPIC without assembling with -K PIC on the SPARC.

Hence the attached kludge, which yields:

Native configuration is sparc-unknown-linux-gnu

I don't get it. Surely this means that -fpic is broken on SPARC/Linux everywhere.

No, there's an ASM_SPEC that adds -K PIC in response to -fPIC on the command-line. But the libgcj_bc_spec doesn't add the -fPIC to the compiler command-line, but to the jc1 command line, so the ASM_SPEC
pattern doesn't trigger.



r~



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]