Header file dependency, rpath, soname and more with GCC

LIU Hao lh_mouse@126.com
Wed Mar 15 06:33:40 GMT 2023


在 2023/3/15 02:53, ljh via Gcc-help 写道:
> (Fixed the web mail format. Sorry!)
> 
> Hi community,
> 
> Currently, I can handle these tasks in C and C++ programming with GCC
> on Linux:
> 
> 1. Header file dependency;
> 2. rpath (for build and install);
> 3. soname for so versioning;
> 4. Debug or Release mode;
> 5. out-of-source build;
> 
> I want to know if there are some other tasks which are missing from the
> above list and I need to handle them too. Many thanks!
> 
> The above tasks can be handled in my CMake, Autotools, or manual Makefile.
> Below is my Makefile.

You should start to use libtool with autotools (and stop writing Makefiles by hand), which does all 
these pieces of dirty work for you, and makes your program (likely to) run on platforms that you 
probably have never heard of.


-- 
Best regards,
LIU Hao

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20230315/74bf17e4/attachment.sig>


More information about the Gcc-help mailing list