how to static link a lib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Please forgive me if this is a question that I should have been able
to find myself. I did search the archives and check the man page
(though it got a bit too confusing and I may have missed what I was
looking for).

I need to know how to static link a particular lib in a file. I
suppose this is more a linker question and not a compiler question -
please let me know if there is a different list I should ask on.

My particular issue is doing a static link of openssl in a php 5.2.0
build - but of course general help is fine.

Also, is there a "standard" arg to pass to autoconf to do this? I have
had many instances with various open source software where a static
link of the whole program or just some libs would have made life
easier. If I could do this using ./configure args it would be great
(would rather not have to modify the makefiles and always have my own
non-pristine sources).

All advice is very appreciated.

Thanks.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux