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]

Why use '/proc/self/exe' in prims.cc?


Ranjit Mathew writes:
 > Hi,
 > 
 >      The subject sums it up: the libgcj configure
 > script sets HAVE_PROC_SELF_EXE if /proc/self/exe is
 > present and prims.cc sets _Jv_ThisExecutable using
 > the value of /proc/<curr-pid>/exe. If this is not
 > defined, the fallback is to use argv[0].
 > 
 > The problem is that autoconf-generated configure dies
 > out during a cross-compiling (if with_cross_host is
 > defined) saying that "Cannot check existence of
 > file during cross-compiling".

This patch should have fixed it:

2002-06-04  H.J. Lu  (hjl@gnu.org)

	* configure.in (--with-newlib): New option:
	Check ${with_newlib} instead of ${with_cross_host} for newlib.
	(HAVE_PROC_SELF_EXE): Defined to 1 only for cross compiling to
	Linux.
	* configure: Regenerated.

Andrew.


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