Static java programs

David Meggy dmeggy@techsol.ca
Fri Sep 12 01:26:00 GMT 2003


I want to be able to create both static and dynamic linked programs. 
I'm not sure where libdl.a comes in, but just based on its name, I
figure gcj shouldn't be trying to link with it, when the -static flag is
given.

David

On Thu, 2003-09-11 at 15:47, Anthony Green wrote:
> On Thu, 2003-09-11 at 14:24, David Meggy wrote:
> > $ arm-linux-gcj HelloWorld.java --main=HelloWorldApp -o HelloWorldJava -Os -static    
> > /usr/lib/gcc-lib/arm-linux/3.3.1/../../../../arm-linux/lib/libdl.a(dlib.o)(.text+0x1fcc): In function `_dlopen':
> > : undefined reference to `_dl_fixup'
> > collect2: ld returned 1 exit status
> 
> If you really want to create a static image, you won't need libdl.a.  Is
> this in one of your spec files?
> 
> AG
> 
> -- 
> Anthony Green <green@redhat.com>
> Red Hat, Inc.
-- 
~~~~~~~~~~~~~~~~~~~~~~~~
     David Meggy
     Engineering

Technical Solutions Inc.
Unit #1 7157 Honeyman St
Delta BC Canada, V4G 1E2
     www.techsol.ca

eMail: dmeggy@techsol.ca
Tel: 604 946 TECH (8324)
Fax: 604 946 6445
~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Java mailing list