This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: uncertain patch: foo_LINK needs foo_LDFLAGS
- From: Tom Tromey <tromey at redhat dot com>
- To: Adam Megacz <megacz at cs dot berkeley dot edu>
- Cc: java-patches at gcc dot gnu dot org
- Date: 22 Dec 2006 03:29:08 -0700
- Subject: Re: uncertain patch: foo_LINK needs foo_LDFLAGS
- References: <x3hcvo779x.fsf@nowhere.com>
- Reply-to: tromey at redhat dot com
>>>>> "Adam" == Adam Megacz <megacz@cs.berkeley.edu> writes:
Adam> Without this patch, the invocations of gcj to build the various tools
Adam> lack the --main=XXX flag. The patch below seemed like the right way
Adam> to fix this, but I'm left wondering how this worked in the first
Adam> place. Am I missing something big here? Does this work as-is for
Adam> other people?
Automake adds _LDFLAGS to the link automatically. E.g., from
Makefile.in:
jv-convert$(EXEEXT): $(jv_convert_OBJECTS) $(jv_convert_DEPENDENCIES)
@rm -f jv-convert$(EXEEXT)
$(jv_convert_LINK) $(jv_convert_LDFLAGS) $(jv_convert_OBJECTS) $(jv_convert_LDADD) $(LIBS)
Tom