public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Gaius Mulley <gaius@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-180] modula2: Add -lnsl -lsocket libraries to gcc/testsuite/lib/gm2.exp Date: Sun, 23 Apr 2023 20:11:49 +0000 (GMT) [thread overview] Message-ID: <20230423201149.6B9803858C83@sourceware.org> (raw) https://gcc.gnu.org/g:8d7223f65799b170b1314a35bb98249d419e7215 commit r14-180-g8d7223f65799b170b1314a35bb98249d419e7215 Author: Gaius Mulley <gaiusmod2@gmail.com> Date: Sun Apr 23 21:09:45 2023 +0100 modula2: Add -lnsl -lsocket libraries to gcc/testsuite/lib/gm2.exp Solaris requires -lnsl -lsocket (present in the driver) but not when running the testsuite. This patch tests target for *-*-solaris2 and conditionally appends the above libraries. gcc/testsuite/ChangeLog: * lib/gm2.exp (gm2_target_compile_default): Conditionally append -lnsl -lsocket to ldflags. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com> Diff: --- gcc/testsuite/lib/gm2.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/testsuite/lib/gm2.exp b/gcc/testsuite/lib/gm2.exp index 25b5e684b3a..ab58a567e48 100644 --- a/gcc/testsuite/lib/gm2.exp +++ b/gcc/testsuite/lib/gm2.exp @@ -218,6 +218,10 @@ proc gm2_target_compile_default { source dest type options } { if [info exists TOOL_OPTIONS] { lappend options "additional_flags=$TOOL_OPTIONS" } + if [istarget *-*-solaris2*] { + lappend options "ldflags=-lnsl -lsocket" + } + lappend options "timeout=[timeout_value]" lappend options "compiler=$GCC_UNDER_TEST" # puts stderr "options = $options\n"
reply other threads:[~2023-04-23 20:11 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230423201149.6B9803858C83@sourceware.org \ --to=gaius@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).