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?


Hi,
 
> It does make sense to try to facilitate the use of SWT with GCJ, 
especially
> by publishing the information needed, or by creating little convenience
> tools that would facilitate the task and support a particular strand of
> using SWT with GCJ.

I think that would be a good idea.
 
BTW: one way to link only specific libs statically while linking other lis 
dynamicly is to pass switches directly to the linker.

This works fine fine using gcc to do the compile/linking so I am not sure 
it will work with gcj but it might...

You simply wrapper the lib you want to link statically between switches 
that get passed to the linker.

The first switch turn on static linking
-Wl,-Bstatic
ad the second switch turns it off
-Wl,-Bdynamic

So the compil link line would look something like the following under gcc

gcc blah_blah -Wl,-Bstatic -lyourstaticlib  -Wl,-Bdynamic -lother_lib1 
-lotherlib2

Hope this helps,

Kevin



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