오래된 자료지만 고전이 명작인듯.
www.fortran-2000.com/ArnaudRecipes/sharedlib.html
Using static and shared libraries across platforms
I produced hereafter some information about shared libraries on different systems. However, this information is probably very sparse on details and may even not be up-to-date. Actually, keeping track of changes is nearly impossible.
The definitive information usually comes from the operating system docs. (e.g. HP's "HP-UX Linker and Libraries User's Guide", Sun's "Linker and Libraries Guide", SGI's "MIPSpro Compiling and Performance Tuning Guide", IBM's "AIX Linking and Loading Mechanisms", etc.), where there is often advice on the best options for performance.
GNU libtool offers an abstraction layer to shared library management.
Feedback is welcome.
Adapted from:
Cross platform development, Using Shared Libraries across Platforms, Shah, Amal ; Xiao, Hong, C/C++ Users Journal, May 1998, Volume 16 Number 5
Notes:
- cells with xxxx implies that the OS does not support that particular feature. ?? means I don't know.
- some compilers offer some extensions to control how symbols are exported. For instance, gcc (4.0 and later) implements "__attribute__((visibility("hidden")))" for ELF targets.
- papers related to versioning
- How to write shared libraries, Ulrich Drepper
Acknowledgments
Juan Altmayer Pizzorno, Wolfgang Haefelinger, Per Losenborg, Anil E. Sahukar, Andrew Stalewski, Pirasenna Velandai Thiyagarajan, Nathan Stratton Treadway, Stephan Weber, Bo Xie
$Id: sharedlib.html,v 1.68 2007/06/15 16:05:49 adesitter Exp $ | Valid XHTML and CSS
by Arnaud Desitter.
© Arnaud Desitter, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
'Linux&Utils > CentOS(Rhel)' 카테고리의 다른 글
perl 이용시 Can't locate ExtUtils/MakeMaker.pm 에러 (0) | 2021.03.23 |
---|---|
인증서(CA:Certificate Authority) (0) | 2021.02.11 |
server user (0) | 2021.01.28 |
linux server spec&port&process (0) | 2021.01.28 |
rpm&yum (0) | 2021.01.28 |