[CMake] Can't get static executable
Steven Van Ingelgem
steven at vaningelgem.be
Fri Jan 11 08:39:46 EST 2008
Sorry Eneko,
I should have been more clear.
It works nicely in CVS under Linux because the "-L<dir> -Wl,-Bstatic
-l<lib>"flags get set correctly. Under a Mac this doesn't work because
they use v401 of GCC, which seems to not understand those flags.
The change which is needed should be to allow the full path to an
archive, and not re-interpret it (for example use
"/lib/libwxbase29u.a" instead of changing it to "-L/lib -Wl,-Bstatic
-lwxbase29u")
What has been discussed can be not better described than what Brad
told in the bug report:
http://public.kitware.com/Bug/view.php?id=3832
Hopes this helps you in your efforts.
Greetings,
Steven
On 11/01/2008, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> Eneko Nieto wrote:
> > Hi Steven,
> >
> > let me ask you certain questions:
> > * What is the release date of 2.6?
> Hopefully in the next month.
> > * Is that feature in the CVS?
> Not yet.
> > * Is there a way to achieve this manually?
> >
> Yes, there should be. As I said, if all libraries are actually static,
> then a -static should do the trick. Currently cmake does add -static
> -shared around libraries that are specified with a full path. You would
> need to give more details to your current problem, and the OS that you
> working on.
>
> -Bill
>
>
>
More information about the CMake
mailing list