On Windows, a debug library's name has a d as a postfix. But I don't know if there is a rule on Linux.
I know there is some dbg packages on Debian. For example, the library of the package libjpeg62-dbg is placed in /usr/lib/debug/usr/lib/libjpeg.so.62.0.0
. Is it a standard rule to place a debug version library into /usr/lib/debug
?
And more. For example, if I run pkg-config --libs opencv
that will return the GCC link options to me such as:
-L/usr/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann
It's very good. But I don't find a option in pkg-config
which can return link options of those debug version libraries such as:
-L/usr/lib/debug -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann
Why pkg-config
has not a option to return debug version of options if there is a standard rule about debug version library?
So, I want to know:
- Is there a standard directory to place a debug library?
- Are there some commands or options to process a debug library like
pkg-config --libs
? - How do you process the problem if the above two answers are no?
Thanks.