diff options
Diffstat (limited to 'hints')
-rw-r--r-- | hints/linux.sh | 17 |
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. |