This is the mail archive of the java@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: Fwd: Re: GC Problems...


Saturday, September 11, 2004, 6:28:40 PM, you wrote:

ME> datal\gcc\build\crossgcc_build\i686-pc-mingw32\libjava\Makefile:
     
ME> old:
ME> libgcj.la: $(libgcj_la_OBJECTS) $(libgcj_la_DEPENDENCIES)
ME>   $(libgcj_la_LINK) -rpath $(toolexeclibdir)
ME> $(libgcj_la_LDFLAGS) $(libgcj_la_OBJECTS) $(libgcj_la_LIBADD)
ME> $(LIBS)

ME> new:
ME> libgcj.la: $(libgcj_la_OBJECTS) $(libgcj_la_DEPENDENCIES)
ME>   @echo Creating list of files to link...
ME>   @: $(call write_entries_to_file,$(libgcj_la_OBJECTS)
ME> $(libgcj_la_LIBADD),libgcj.objectlist)
ME>   $(libgcj_la_LINK) -rpath $(toolexeclibdir)
ME> $(libgcj_la_LDFLAGS) -objectlist libgcj.objectlist $(LIBS)


ME> -------- End of forwarded message --------

Hi,

Although this worked for the cross build, when I built the native the
fact that the libgcj_la_LIBADD objects were placed in the
libgcj.objectlist file rather than on the commandline was a problem.

The end of the libtool piecewise linking command looked like this:

<cut>
threads.o ../libffi/ ../zlib/ ../boehm-gc/ gnu/regexp/MessagesBundle.properties.o
i686-pc-mingw32-ar: Warning: '../libffi/' is not an ordinary file
i686-pc-mingw32-ar: Warning: '../zlib/' is not an ordinary file
i686-pc-mingw32-ar: Warning: '../boehm-gc/' is not an ordinary file
i686-pc-mingw32-ranlib .libs/libgcj.a
<cut>

even though the libgcj.objectlist file contained the following at the
end:

<cut>
win32-threads.lo
../libffi/libffi_convenience.la
../zlib/libzgcj_convenience.la
../boehm-gc/libgcjgc_convenience.la
gnu/regexp/MessagesBundle.properties.lo
gnu/regexp/MessagesBundle_fr.properties.lo
<cut>

A magician got in the works and made the filenames disappear for some
reason (related to the use of "../" ?), so I'd recommend putting
libgcj_la_LIBADD on the commandline rather than in the call to
'write_entries_to_file'. This is how the Makefile in 3.4.1 worked
(perhaps for the same reason).

Regards,
Rutger Ovidius








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