ianlancetaylor / libbacktrace

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

libbacktrace: avoid libtool wrapping tests #99

Closed jtojnar closed 6 months ago

jtojnar commented 1 year ago

When --enable-shared is used, libtool will produce shell scripts instead of programs, preventing separate debug info from being generated:

objcopy --only-keep-debug btest btest_gnudebuglink.debug
objcopy: btest: file format not recognized
make[2]: *** [Makefile:2615: btest_gnudebuglink] Error 1

Let’s make it properly set rpath with -no-install flag, so that wrappers are not needed, as mentioned on https://autotools.info/libtool/wrappers.html

whitslack commented 1 year ago

I confirm that this is a better fix than #95. Thanks.

jtojnar commented 6 months ago

@ianlancetaylor While we have your attention, could you please take a look at this?

ianlancetaylor commented 6 months ago

Thanks, I committed a slightly different version of this patch. I committed it to the GCC repo first; this repo is actually downstream from that one.