public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* lib_path for libjava in top level
@ 2008-08-23 20:36 Aaron W. LaFramboise
  2008-08-24 10:50 ` Andrew Haley
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron W. LaFramboise @ 2008-08-23 20:36 UTC (permalink / raw)
  To: java

Presently in the top-level Makefile.def, libjava is not among the 
libraries that have a specified TARGET_LIB_PATH.  For libraries that 
have this, such as libgcc, libgomp, libstdc++, and others, it ensures 
that RPATH is set appropriately when in-tree executables are run as part 
of the build or test process.  For instance:

target_modules = { module= libgomp; lib_path=.libs; };

Because on this, on i386-pc-mingw32, gcj-dbtool.exe fails to run when 
libgcj is compiled as a dynamic library, if there is not already a 
binary-compatible libgcj installed on the system somewhere that the 
loader can find it.

Is this an oversight, or there some other mechanism that is supposed to 
make this work, that perhaps doesn't work on Windows?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: lib_path for libjava in top level
  2008-08-23 20:36 lib_path for libjava in top level Aaron W. LaFramboise
@ 2008-08-24 10:50 ` Andrew Haley
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Haley @ 2008-08-24 10:50 UTC (permalink / raw)
  To: Aaron W. LaFramboise; +Cc: java

Aaron W. LaFramboise wrote:
> Presently in the top-level Makefile.def, libjava is not among the
> libraries that have a specified TARGET_LIB_PATH.  For libraries that
> have this, such as libgcc, libgomp, libstdc++, and others, it ensures
> that RPATH is set appropriately when in-tree executables are run as part
> of the build or test process.  For instance:
> 
> target_modules = { module= libgomp; lib_path=.libs; };
> 
> Because on this, on i386-pc-mingw32, gcj-dbtool.exe fails to run when
> libgcj is compiled as a dynamic library, if there is not already a
> binary-compatible libgcj installed on the system somewhere that the
> loader can find it.
> 
> Is this an oversight, or there some other mechanism that is supposed to
> make this work, that perhaps doesn't work on Windows?

Libtool is supposed to fix this.  gcj-dbtool in the build dir is a shell
script that generates the executable .libs/lt-gcj-dbtool and then executes it.
lt-gcj-dbtool has an rpath-link pointing into the build dir.

Maybe libtool doesn't work properly on mingw.

Andrew.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-24 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-23 20:36 lib_path for libjava in top level Aaron W. LaFramboise
2008-08-24 10:50 ` Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).