This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Building shared objects with gcj on osx
- From: jym at Cs dot Nott dot AC dot UK
- To: Andi Vajda <andi at osafoundation dot org>
- Cc: java at gcc dot gnu dot org
- Date: 05 Mar 2005 12:13:56 +0000
- Subject: Re: Building shared objects with gcj on osx
- Source-info: From (or Sender) name not authenticated.
Thanks for your help andi ...
I use both -shared -bundle and it seems to work for the python extension
I'm building. I also used these flags at times:
-undefined suppress -flat_namespace -multiply_defined suppress
-shared -bundle produced
bash-2.05a$ gcj -shared -bundle -o helloworld.so Test.java
/usr/bin/ld: Undefined symbols:
___eprintf
_environ
collect2: ld returned 1 exit status
but...
bash-2.05a$ gcj -shared -bundle -undefined suppress -flat_namespace -o
helloworld.so Test.java
built fine. (for anyone else trying this)
Is -undefined suppress causing the eprintf and environ symbols to be
ignored, and if so, what is lost because of this? Is there any info as to
why these symbols are included in the object file, and as to why they're
not linkable in OSX?
Many thanks for your help, off to play with my new .so
J
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.