This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Static java programs
- From: David Meggy <dmeggy at techsol dot ca>
- To: "uclibc at uclibc dot org" <uclibc at uclibc dot org>, java at gcc dot gnu dot org
- Date: 11 Sep 2003 14:24:39 -0700
- Subject: Static java programs
Hi
I'm having problems statically linking Java programs with gcc's gcj.
Dynamically linking works perfectly.
This is the error message I get
$ 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
I don't know which list to ask about this so I tried both.
Does anyone know what is going on?
I'm using binutils 2.14, gcc 3.3.1, uclibc 0.9.21, configured to cross
compile to an arm-linux target.
David
--
~~~~~~~~~~~~~~~~~~~~~~~~
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
~~~~~~~~~~~~~~~~~~~~~~~~