libjava broken on the trunk on i386-darwin8.11
Dave Korn
dave.korn.cygwin@googlemail.com
Wed Sep 30 05:34:00 GMT 2009
Dave Korn wrote:
> Andrew Pinski wrote:
>> And this was caused by Dave Korn's change on the 2009-09-22.
>> He added -no-undefined to libgij_la_LDFLAGS which causes libtool to
>> remove -Wl,-undefined -Wl,dynamic_lookup from the link line.
>
> Ow, sorry about that, I didn't know it would change things for Darwin. I'll
> whip up a fix that adds the flag only for windows platforms, thanks for the
> bug report.
I'm now bootstrapping this. Andrew, would you like to check if it fixes
your problem on Darwin?
libjava/ChangeLog:
* configure.host (libgcj_sublib_ltflags): New variable.
* configure.ac (LIBGCJ_SUBLIB_LTFLAGS): AC_SUBST variable for
the above in makefiles.
* configure: Regenerate.
* Makefile.am (libgcj_la_LDFLAGS_NOUNDEF): Rename from this ...
(LIBJAVA_LDFLAGS_NOUNDEF): ... to this, initialise from
LIBGCJ_SUBLIB_LTFLAGS (only when building sublibs), and ...
(libgij_la_LDFLAGS, libgcj_tools_la_LDFLAGS, libjvm_la_LDFLAGS,
lib_gnu_awt_xlib_la_LDFLAGS, libgcj_bc_la_LDFLAGS): ... use it in
all these places to replace hard-coded -no-undefined and -bindir
flags, as well as ...
(libgcj_la_LDFLAGS): ... updating existing reference here.
* Makefile.in: Regenerate.
* include/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
* gcj/Makefile.in: Likewise.
cheers,
DaveK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libjava-pinski-darwin.diff
Type: text/x-c
Size: 5781 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20090930/664485ed/attachment.bin>
More information about the Java-patches
mailing list