3.0.1 PATCH: Support JNI_OnLoad on systems without weak definitions

Andrew Haley aph@cambridge.redhat.com
Wed Jul 25 02:56:00 GMT 2001


Rainer Orth writes:
 > Tom Tromey writes:
 > 
 > > Rainer> Mon Jul 23 13:50:40 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 > > Rainer>  * gnu/gcj/runtime/natFirstThread.cc (_JNI_OnLoad): New function.
 > > Rainer>  (JNI_OnLoad): Use it.
 > > Rainer>  (gnu::gcj::runtime::FirstThread::run): Check for _JNI_OnLoad, not
 > > Rainer>  NULL.
 > > 
 > > I couldn't find any docs on `#pragma weak foo = bar'.
 > 
 > It's the #pragma weak equivalent of
 > 
 > 	void foo () __attribute__ ((weak, alias ("bar"));

If there's an equivalent attribute, why use a pragma?  Pragmas are
depracated in gnu code.

Andrew.



More information about the Java-patches mailing list