This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Newbie question: -static causes errors
- From: Andrew Haley <aph at redhat dot com>
- To: "Neil Aggarwal" <neil at JAMMConsulting dot com>
- Cc: "GCJ Mailing List" <java at gcc dot gnu dot org>
- Date: Sun, 1 Dec 2002 12:54:07 +0000 (GMT)
- Subject: Newbie question: -static causes errors
- References: <ACEDKBKBMCFCDCBFOOEJIEDPCEAA.neil@JAMMConsulting.com>
Neil Aggarwal writes:
> Hello:
>
> I am a newbie to gcj, so please forgive any obvious questions.
> I searched the mailing list archives to no avail.
>
> I am using the gcj that was installed when I installed RedHat 8.0
> on an new machine.
Looks like you don't have a statically linked version of libpthread or
that it isn't being found.
In any case, are you quite sure that you need a statically linked
version of your program? Even with "-static", libgcj can still open
shared libraries at runtime so you don't gain much by doing this.
Andrew.