Date: Sat, 20 Aug 2022 19:13:23 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265962] lang/gcc11: expose non-default -stdlib=libc++ support Message-ID: <bug-265962-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265962 Bug ID: 265962 Summary: lang/gcc11: expose non-default -stdlib=3Dlibc++ support Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: toolchain@FreeBSD.org Reporter: jbeich@FreeBSD.org Flags: maintainer-feedback?(toolchain@FreeBSD.org) Assignee: toolchain@FreeBSD.org Created attachment 236025 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D236025&action= =3Dedit v1 (apply via "git am") $ 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 a= re available: libstdc++ (the default, native C++ runtime for G++) a= nd libc++ which is the C++ runtime installed on some operating syst= ems (e.g. Darwin versions from Darwin11 onwards). The option switch= es G++ to use the headers from the specified library and to emit "-lstdc++" or "-lc++" respectively, when a C++ runtime is requir= ed for linking. --=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-265962-7788>