------- Comment #2 from mrs at gcc dot gnu dot org  2010-04-21 18:39 -------
When I run it by hand, I get:

$ /Users/mrs/net/gcc-java/gcc/xgcc -B/Users/mrs/net/gcc-java/gcc/
/Users/mrs/net/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.c  
-bind_at_load -multiply_defined suppress -I. -I..
-I/Users/mrs/net/gcc/libjava/testsuite/libjava.jni
-I/Users/mrs/net/gcc/libjava/testsuite/../include
-I/Users/mrs/net/gcc/libjava/testsuite/../classpath/include
-fdollars-in-identifiers
-L/Users/mrs/net/gcc-java/x86_64-apple-darwin10/./libjava/.libs -ljvm
-shared-libgcc -ldl -lgcj -L/opt/local/lib -liconv  -lm    -o PR16923
$ export
CLASSPATH=~/net/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.jar
$ DYLD_LIBRARY_PATH=../.libs:../../libgcc:/opt/local/lib ./PR16923
optionReceived

on x86_64-apple-darwin10 so this would be just a simple matter of ensuring the
setting of DYLD_LIBRARY_PATH, CLASSPATH and compiling with -L/opt/local/lib.  I
suspect DYLD_LIBRARY_PATH and CLASSPATH  are already correct.  I'm hoping you
can confirm this incantation works for you.

I've filed PR43839 that covers getting -L added, which I hope resolves this
issue.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43086

Reply via email to