Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 2021 23:38:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 236344] [toolchain] gcc-built shared library crashes in static object constructors when dynamically loaded
Message-ID:  <bug-236344-29464-Pgt5sBCrHN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236344-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236344-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236344

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++ v=
ia
CXXFLAGS=3D"-nostdinc++ -isystem /usr/include/c++/v1" and
LDFLAGS=3D"-L/tmp/somedir" where somedir is where you do ln -s /usr/lib/lib=
c++.so
libstdc++.so. The ports framework already supports this, see the gcc-c++11-=
lib
section at the bottom of Mk/Uses/compiler.mk.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236344-29464-Pgt5sBCrHN>