[Bug 236344] [toolchain] gcc-built shared library crashes in static object constructors when dynamically loaded

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 16 Aug 2021 23:38:42 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236344

Greg V <greg_at_unrelenting.technology> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greg_at_unrelenting.technology

--- Comment #7 from Greg V <greg_at_unrelenting.technology> ---
Encountered this in darktable (non-ports, just trying gcc to compare
performance) as well. The only solution I've found is switching to libc++ via
CXXFLAGS="-nostdinc++ -isystem /usr/include/c++/v1" and
LDFLAGS="-L/tmp/somedir" where somedir is where you do ln -s /usr/lib/libc++.so
libstdc++.so. The ports framework already supports this, see the gcc-c++11-lib
section at the bottom of Mk/Uses/compiler.mk.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Mon Aug 16 2021 - 23:38:42 UTC

Original text of this message