linking statically against shared libraries

linking statically against shared libraries

Post by Pete Flugsta » Thu, 13 Jan 2000 04:00:00



I'm not quite sure what the right place to ask this question is, (here,
or
the gcc groups), but I have shared libraries that I want to link
statically
against (for the obvious reason that I don't want to have to ship the
shared
library along with my application).  I'm on a RedHat Linux 6.1 system,
using
the default EGCS-1.1.2 compiler and tools.

Please email me in response, as I don't read this newsgroup regularly.

Thanks
Pete

 
 
 

linking statically against shared libraries

Post by Bryan VanDeVe » Thu, 13 Jan 2000 04:00:00


Quote:> I'm not quite sure what the right place to ask this question is, (here,
> or
> the gcc groups), but I have shared libraries that I want to link
> statically
> against (for the obvious reason that I don't want to have to ship the
> shared
> library along with my application).  I'm on a RedHat Linux 6.1 system,
> using
> the default EGCS-1.1.2 compiler and tools.

The source code for just about everything on a RH6.1 system should be
available somewhere.  Just grab the code and compile the libs statically
for yourself.

Quote:> Please email me in response, as I don't read this newsgroup regularly.

Please don't ask questions in a newsgroup if you can't be bothered to
participate - we're not paid consultants at your disposal, after all.

Regards,

--
Bryan Van de Ven
Applied Research Labs
University of Texas, Austin

 
 
 

1. linking statically from shared libraries

Machine/OS: powerpc-ibm-aix4.3.1.0
xlc version: vac.C 5.0.0.0
ld version:  bos.rte.bind_cmds 4.3.3.0

I have some shared libraries that I would like to link to statically --
that is, I would like to create a static library which contains my own
code plus whatever code it needs from the shared library (rather than
simply pointing to the shared library for dynamic loading).

What is the proper way to do this?  Is it using the -bstatic option of
"ld"?

Thanks,
Cesar Farell

2. Why three ttyUSB{0..2} on wireless broadband?

3. linking against old shared libraries

4. glibc2 questions

5. linking against shared libraries

6. Kernel Tuneing for file descriptors

7. Question: Inclusion of shared libraries during linking of shared libraries

8. YDL 1.2.1. and XFree4...again...

9. Howto determain against what a binary is statically linked ?

10. linking static library against another library

11. link libraries statically/dynamically

12. Help! Crashing when Motif library was linked statically

13. linking some libraries statically