public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-180] modula2: Add -lnsl -lsocket libraries to gcc/testsuite/lib/gm2.exp
@ 2023-04-23 20:11 Gaius Mulley
0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2023-04-23 20:11 UTC (permalink / raw)
To: gcc-cvs
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"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-23 20:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-23 20:11 [gcc r14-180] modula2: Add -lnsl -lsocket libraries to gcc/testsuite/lib/gm2.exp Gaius Mulley
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).