Q: Static binaries: where do I get libX11.a ???

Q: Static binaries: where do I get libX11.a ???

Post by Ronald Hartwi » Thu, 22 Aug 1996 04:00:00



Hi,

it's about a program that uses XView and (certainly) X11. I want to
distribute it as a binary as well, so the people won't have to worry
about compiling and installing XView themselves. So I deceided to
compile it '-static'. Unfortunatly it misses '-lX11' as there is no
'libX11.a'.

I understand that the libs in the distribution (Linux 4.2 (SuSE),
Kernel 2.0.0 ELF) are *dynamic* and cannot be used. So I think of two
ways to overcome this:

1) get an static libX11.a

or

2) exclude the X11 libs from the list of libraries to be linked
statically. (Sounds reasonable as everybody using this program will
have X anyway)

Anyhow I don't have an idea how to do so!

Please help.
Ronald

--

| http : //www.informatik.uni-oldenburg.de/~rhaug/         /\  /   // | \ /   |
| SMail: Haareneschstr.2, D-26121 Oldenburg               |--| \__ -/ |_/ \__ |
\ Tel. : Di.-Do.:0441-71590  Fr.-Mo.:05422-1752                    /          /

 
 
 

1. Q: Static binaries: where do I get libX11.a ???

Hi,

it's about a program that uses XView and (certainly) X11. I want to
distribute it as a binary as well, so the people won't have to worry
about compiling and installing XView themselves. So I deceided to
compile it '-static'. Unfortunatly it misses '-lX11' as there is no
'libX11.a'.

I understand that the libs in the distribution (Lin 4.2, Kernel 2.0.0
ELF) are *dynamic* and cannot be used. So I think of two ways to
overcome this:

1) get an static libX11.a

or

2) exclude the X11 libs from the list of libraries to be linked
statically. (Sounds reasonable as everybody using this program will
have X anyway)

Anyhow I don't have an idea how to do so!

Please help.
Ronald
--

| http : //www.informatik.uni-oldenburg.de/~rhaug/         /\  /   // | \ /   |
| SMail: Haareneschstr.2, D-26121 Oldenburg               |--| \__ -/ |_/ \__ |
\ Tel. : Di.-Do.:0441-71590  Fr.-Mo.:05422-1752                    /          /

2. "Head / HTTP" Request help

3. Linux and win2k

4. making static binary out of shared library and binary

5. 1.3.8x - termified netscape problem

6. converting shared binaries to static binaries

7. Sendmail can't find libgdbm.so.2

8. convert dynamic binary --> static binary possible?

9. Building static libX11.a, X11R6 and Solaris 2.3

10. Whereis static libX11.a ?

11. libX11.sa or libX11.a

12. libX11.so.3 => libX11.so.6 (help)