[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 UTC

Greg V <greg@unrelenting.technology> changed:

           What    |Removed                     |Added
                 CC|                            |greg@unrelenting.technology

--- Comment #7 from Greg V <greg@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.