summaryrefslogtreecommitdiff
path: root/init.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'init.cfg')
-rw-r--r--init.cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.cfg b/init.cfg
index afee93077..093cd8586 100644
--- a/init.cfg
+++ b/init.cfg
@@ -466,6 +466,15 @@ require_sparse_support_()
fi
}
+# There are a myriad of ways to build shared libs,
+# so we only consider running tests requiring shared libs,
+# on platforms that support building them as follows.
+require_gcc_shared_()
+{
+ $CC -shared -fPIC -O2 -xc -o d.so -ldl - < /dev/null 2>&1 \
+ || skip_ '$CC -shared ... failed to build a shared lib'
+}
+
mkfifo_or_skip_()
{
test $# = 1 || framework_failure_