Commit 630f2da9 by Rainer Orth Committed by Rainer Orth

Introduce dg-add-options net_ts

	* testsuite/lib/dg-options.exp (add_options_for_net_ts): New proc.
	* testsuite/experimental/net/internet/address/v4/comparisons.cc:
	Add dg-add-options net_ts.
	* testsuite/experimental/net/internet/address/v4/cons.cc: Likewise.
	* testsuite/experimental/net/internet/address/v4/creation.cc: Likewise.
	* testsuite/experimental/net/internet/address/v4/members.cc: Likewise.
	* testsuite/experimental/net/internet/resolver/base.cc: Likewise.
	* testsuite/experimental/net/internet/resolver/ops/lookup.cc: Likewise.
	* testsuite/experimental/net/internet/resolver/ops/reverse.cc: Likewise.

From-SVN: r265192
parent b57d432b
2018-10-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* testsuite/lib/dg-options.exp (add_options_for_net_ts): New proc.
* testsuite/experimental/net/internet/address/v4/comparisons.cc:
Add dg-add-options net_ts.
* testsuite/experimental/net/internet/address/v4/cons.cc: Likewise.
* testsuite/experimental/net/internet/address/v4/creation.cc: Likewise.
* testsuite/experimental/net/internet/address/v4/members.cc: Likewise.
* testsuite/experimental/net/internet/resolver/base.cc: Likewise.
* testsuite/experimental/net/internet/resolver/ops/lookup.cc: Likewise.
* testsuite/experimental/net/internet/resolver/ops/reverse.cc: Likewise.
2018-10-16 Jonathan Wakely <jwakely@redhat.com>
* testsuite/20_util/duration/literals/range_neg.cc: Adjust pruned
......
......@@ -16,6 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++14" }
// { dg-add-options net_ts }
#include <experimental/internet>
#include <testsuite_hooks.h>
......
......@@ -16,6 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++14" }
// { dg-add-options net_ts }
#include <experimental/internet>
#include <testsuite_hooks.h>
......
......@@ -16,6 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++14" }
// { dg-add-options net_ts }
#include <experimental/internet>
#include <testsuite_hooks.h>
......
......@@ -16,6 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++14" }
// { dg-add-options net_ts }
#include <experimental/internet>
#include <testsuite_hooks.h>
......
......@@ -16,6 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++14" }
// { dg-add-options net_ts }
#include <experimental/internet>
#include <testsuite_hooks.h>
......
......@@ -16,6 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++14" }
// { dg-add-options net_ts }
#include <experimental/internet>
#include <testsuite_hooks.h>
......
......@@ -16,6 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++14" }
// { dg-add-options net_ts }
#include <experimental/internet>
#include <testsuite_hooks.h>
......
......@@ -246,6 +246,17 @@ proc add_options_for_no_pch { flags } {
return "-D__GLIBCXX__=99999999"
}
# Add to FLAGS all the target-specific flags needed for networking.
proc add_options_for_net_ts { flags } {
# Before they were integrated into libc in Solaris 11.4, Solaris needs
# libsocket and libnsl for networking applications.
if { [istarget *-*-solaris2*] } {
return "$flags -lsocket -lnsl"
}
return $flags
}
# Like dg-options, but adds to the default options rather than replacing them.
proc dg-additional-options { args } {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment