diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2023-04-23 21:09:45 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2023-04-23 21:09:45 +0100 |
commit | 8d7223f65799b170b1314a35bb98249d419e7215 (patch) | |
tree | e378e44176eb61e77d3610a11e8f07af35087db4 /gcc | |
parent | 7e26fd6bcd39f53bc917f55f8cce6101180c1dcd (diff) | |
download | gcc-8d7223f65799b170b1314a35bb98249d419e7215.zip gcc-8d7223f65799b170b1314a35bb98249d419e7215.tar.gz gcc-8d7223f65799b170b1314a35bb98249d419e7215.tar.bz2 |
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/lib/gm2.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/gm2.exp b/gcc/testsuite/lib/gm2.exp index 25b5e68..ab58a56 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" |