summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-11-14 20:48:36 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2014-11-14 20:48:36 -0500
commit6d24ec7be998b8dc8da69b2fa6fb65fc3a0b96e1 (patch)
tree8083acefb61f5cd0bc33ce83da16c279112dddc3 /hints
parent2e9cdb626b076c27574f57758300ad2c7afaa8b3 (diff)
downloadperl-6d24ec7be998b8dc8da69b2fa6fb65fc3a0b96e1.tar.gz
quadmath: try finding if only available as gcc internal library.
Diffstat (limited to 'hints')
-rw-r--r--hints/linux.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index 956adfca25..d4f08238b0 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -178,6 +178,23 @@ case "$plibpth" in
;;
esac
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
+# the quadmath library.
+# XXX This may apply to other gcc internal libraries, if such exist.
+# XXX This could be at Configure level, but then the $gcc is messy.
+case "$usequadmath" in
+"$define")
+ for d in `LANG=C LC_ALL=C $gcc $ccflags $ldflags -print-search-dirs | grep libraries | cut -f2- -d= | tr ':' $trnl | grep 'gcc' | sed -e 's:/$::'`
+ do
+ case `ls $d/*libquadmath*$so* 2>/dev/null` in
+ $d/*libquadmath*$so*) xlibpth="$xlibpth $d" ;;
+ esac
+ done
+ ;;
+esac
+
case "$libc" in
'')
# If you have glibc, then report the version for ./myconfig bug reporting.