This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 ...



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]