Date: Sat, 20 Aug 2022 19:13:23 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: maintainer-feedback requested: [Bug 265962] lang/gcc11: expose non-default -stdlib=libc++ support Message-ID: <bug-265962-29464-uZZdcZGo5w@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-265962-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-265962-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-toolchain (Nob= ody) <toolchain@FreeBSD.org> for maintainer-feedback: Bug 265962: lang/gcc11: expose non-default -stdlib=3Dlibc++ support https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265962 --- Description --- $ pkg install gcc11 $ echo 'int main() {}' >a.cc $ gcc11 -stdlib=3Dlibc++ a.cc gcc11: error: unrecognized command-line option '-stdlib=3Dlibc++' $ man gcc11 | col -b | fgrep -A9 stdlib=3D -stdlib=3Dlibstdc++,libc++ When G++ is configured to support this option, it allows specification of alternate C++ runtime libraries. Two options are available: libstdc++ (the default, native C++ runtime for G++) and libc++ which is the C++ runtime installed on some operating systems (e.g. Darwin versions from Darwin11 onwards). The option switches G++ to use the headers from the specified library and to emit "-lstdc++" or "-lc++" respectively, when a C++ runtime is required for linking.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265962-29464-uZZdcZGo5w>