ianlancetaylor / libbacktrace

A C library that may be linked into a C/C++ program to produce symbolic backtraces
Other
977 stars 228 forks source link

Add pkg-config file #92

Open Chocobo1 opened 2 years ago

Chocobo1 commented 2 years ago

Resolves #65.

The generated libbacktrace.pc would look like this:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libbacktrace
Description: A C library that may be linked into a C/C++ program to produce symbolic backtraces
URL: https://github.com/ianlancetaylor/libbacktrace
Version: 1.0
Cflags: -I${includedir}
Libs: -L${libdir} -lbacktrace

Note that the autotools scripts need to be regenerated and I consider it would be better done by the project maintainers.

fsimonis commented 1 year ago

Can we have this feature please? :pray:

This would greatly simplify the life of packagers and users alike!

codeinred commented 1 year ago

Boosting because this would be a nice feature!

clopez commented 1 year ago

+2 for this.. please this is something basic for any library