Re: mixed compilation
- From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxxxx>
- Date: Thu, 29 Dec 2005 23:59:13 -0800
alex.gman@xxxxxxxxx writes:
> Can you compile an application statically with respect to some
> libraries and dynamically with respect to others?
Sure. Do "man ld", look for -Bstatic and -Bdynamic.
Note that '-Bxxxx' means something else to gcc, be sure to use
-Wl,-Bstatic and -Wl,-Bdynamic.
> I can't find the required GCC options for that.
That's because they are 'ld' options, not gcc options.
> On another topic, can one use DLLs to build statically linked
> executables?
This has just been discussed:
http://groups.google.com/group/comp.os.linux.development.apps/browse_frm/thread/6966da48032bdc07
> Seems like there should be a way to lift the binary
> procedure code out of DLL and plug them into your executables, in
> theory. But how can this be done in practice?
In practice this doesn't work too well.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.
- References:
- mixed compilation
- From: alex . gman
- mixed compilation
- Prev by Date: mixed compilation
- Next by Date: x.org dropped imake, now what is the best way to convert existing Imakefile so it can be used with automake et all?
- Previous by thread: mixed compilation
- Next by thread: Re: mixed compilation
- Index(es):