This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: SWT and gcj - any license issues?
- From: "Erik Poupaert" <erik dot poupaert at chello dot be>
- To: "Kevin B. Hendricks" <kevin dot hendricks at sympatico dot ca>
- Cc: <java at gcc dot gnu dot org>
- Date: Sat, 19 Apr 2003 03:12:36 +0200
- Subject: RE: SWT and gcj - any license issues?
>>>>> BTW: one way to link only specific libs statically while linking other
lis
>>>>> dynamicly is to pass switches directly to the linker.
>>>>> The first switch turn on static linking
>>>>> -Wl,-Bstatic
>>>>> ad the second switch turns it off
>>>>> -Wl,-Bdynamic
Thanks. If I understand this right, I should compile as following:
gcj ... -Wl,-Bstatic -lgcc_s -lgcj -Wl,-Bdynamic -lm -lpthread -ldl -lc
???ld-linux
Do you know, if I need to link against ld-linux explicitly?
A second problem is that gcj automatically links against the gcc_s, gcj, m,
pthread, dl, and c libraries. How can I prevent gcj from automatically doing
this? I obviously need more control over the linking process ...