Building java/openjdk7 with clang

Dimitry Andric dim at FreeBSD.org
Sun Sep 15 09:45:25 UTC 2013


On Sep 15, 2013, at 08:07, Konstantin Belousov <kostikbel at gmail.com> wrote:
> On Sun, Sep 15, 2013 at 01:45:19AM +0200, Dimitry Andric wrote:
...
>> - Change the $(CC) -dumpspecs hack in one of the Makefiles to something
>>  more portable.  The -dumpspecs is done to figure out if the compiler
>>  uses --hash-style=gnu when linking, and if it does, it changes the
>>  option to --hash-style=both.  On FreeBSD, this is basically a no-op,
> Compiler ? Do you reference the ELF hash there ? Why do you think this is
> nop ?


Before your r236137 in head, our gcc did not pass --hash-style at all,
afterwards it passes --hash-style=both (for dynamic executables).
Similar for our clang, before and after r236258.

So grepping for --hash-style=gnu in the verbose output will never give a
hit, and the JDK Makefile will never add an explicit --hash-style=both
argument.  Therefore, for FreeBSD, the whole block is effectively a nop.

Maybe the change from -dumpspecs to a small link operation using -v can
be sent upstream, so it works for all compilers.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-java/attachments/20130915/0b0a50ec/attachment.sig>


More information about the freebsd-java mailing list