This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Does gcj pass -dy and -dn to linker?
- To: java at gcc dot gnu dot org
- Subject: Does gcj pass -dy and -dn to linker?
- From: Bill Bland <wjb at netpd dot com>
- Date: Mon, 29 Oct 2001 11:45:03 +0000 (GMT)
- Reply-To: wjb at netpd dot com
Hello,
I want to link some libraries statically and others dynamically. The way
to do this is to use the -dy and -dn flags, which affect any -l... that
follow them so you can do:
ld -dy -ldynamiclib -dn -lstaticlib -dy -lalsodynamiclib
What I need to know is: does gcj pass these flags correctly to the linker?
I gave the -dy and -dn flags to gcj and it produces an executable that is
different to when I don't specify them, but even when I link all of
libstdc++ and libgcj statically the output file size doesn't change (it's
253kb). I would think that it should grow dramatically when linking these
statically? I know *something* happens when gcj has these flags because
diff says that the output files are different, but the file size remains
exactly the same.
The reason I need this to work: I'd really like to link the whole thing
statically, but when I give -lXext (I'm using fltk) statically the program
compiles but doesn't work - it just prints "Aborted", so I need to link
everything else statically but libXext dynamically.
Any ideas?
Best wishes,
Bill.