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: "Kevin B. Hendricks" <kevin dot hendricks at sympatico dot ca>
- To: "Erik Poupaert" <erik dot poupaert at chello dot be>
- Cc: <java at gcc dot gnu dot org>
- Date: Fri, 18 Apr 2003 21:01:24 -0400
- Subject: Re: SWT and gcj - any license issues?
- References: <POEIJGMGPFPGFHAGKFHAOEDMCHAA.erik.poupaert@chello.be>
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