libstdc++: Build libstdc++_libbacktrace.a as PIC [PR111936]
commitf32c1e1e96ffef6512ce025942b51f3967a3e7f2
authorJonathan Wakely <jwakely@redhat.com>
Tue, 24 Oct 2023 15:56:30 +0000 (24 16:56 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 25 Oct 2023 10:08:57 +0000 (25 11:08 +0100)
tree00aefb6b89d6392589292b910bc1ea531e89ffa6
parent8bb655d0c56502798d664ab0c1685bbab4aaa454
libstdc++: Build libstdc++_libbacktrace.a as PIC [PR111936]

In order for std::stacktrace to be used in a shared library, the
libbacktrace symbols need to be built with -fPIC. Add the libtool
-prefer-pic flag to the commands in src/libbacktrace/Makefile so that
the archive contains PIC objects.

libstdc++-v3/ChangeLog:

PR libstdc++/111936
* src/libbacktrace/Makefile.am: Add -prefer-pic to libtool
compile commands.
* src/libbacktrace/Makefile.in: Regenerate.
libstdc++-v3/src/libbacktrace/Makefile.am
libstdc++-v3/src/libbacktrace/Makefile.in