From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 80E1A3856081; Fri, 24 Jun 2022 02:30:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80E1A3856081 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-1230] libstdc++: testsuite: use -lbsd for net_ts on RTEMS X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/heads/master X-Git-Oldrev: c655ff35eda02dc53cf8dc9a98208ce8a4604a1f X-Git-Newrev: a5bba80e32fd96b2ae90ad1072d84dfe64cf78a4 Message-Id: <20220624023050.80E1A3856081@sourceware.org> Date: Fri, 24 Jun 2022 02:30:50 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2022 02:30:50 -0000 https://gcc.gnu.org/g:a5bba80e32fd96b2ae90ad1072d84dfe64cf78a4 commit r13-1230-ga5bba80e32fd96b2ae90ad1072d84dfe64cf78a4 Author: Alexandre Oliva Date: Thu Jun 23 23:20:46 2022 -0300 libstdc++: testsuite: use -lbsd for net_ts on RTEMS Networking functions that net_ts tests rely on are defined in libbsd on RTEMS, so link with it. for libstdc++-v3/ChangeLog * testsuite/lib/dg-options.exp (add_options_for_net_ts): Add -lbsd for RTEMS targets. Diff: --- libstdc++-v3/testsuite/lib/dg-options.exp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libstdc++-v3/testsuite/lib/dg-options.exp b/libstdc++-v3/testsuite/lib/dg-options.exp index 203bb0dfed5..15f37da468a 100644 --- a/libstdc++-v3/testsuite/lib/dg-options.exp +++ b/libstdc++-v3/testsuite/lib/dg-options.exp @@ -253,6 +253,12 @@ proc add_options_for_net_ts { flags } { # libsocket and libnsl for networking applications. if { [istarget *-*-solaris2*] } { return "$flags -lsocket -lnsl" + } elseif { [istarget *-*-rtems*] } { + # Adding -Wl,--gc-sections would enable a few more tests to + # link, but all of them fail at runtime anyway, because the + # io_context ctor calls pipe(), which always fails, and thus + # the ctor throws a system error. + return "$flags -lbsd" } return $flags }