summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-11-23 09:59:25 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2014-11-23 10:00:06 -0500
commite219c9bd8ab87ada067bb63a9900a573c6e29aa1 (patch)
tree5e23a11f71ad2fe121e47f137b39c00693ad8276 /hints
parente3da8f0230c2fc441705491cb1d27ed71aeba71d (diff)
downloadperl-e219c9bd8ab87ada067bb63a9900a573c6e29aa1.tar.gz
AIX: gcc long doubles do not use -qlongdouble.
Diffstat (limited to 'hints')
-rw-r--r--hints/aix.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index fce831fd12..a55fce60a5 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -634,7 +634,10 @@ int main() {
printf("%Lg\n", powl(-3.0L, 2.0L));
}
EOF
- $cc -qlongdouble -o powl$$ powl$$.c -lm
+ case "$gccversion" in
+ '') $cc -qlongdouble -o powl$$ powl$$.c -lm ;;
+ *) $cc -o powl$$ powl$$.c -lm ;;
+ esac
case `./powl$$` in
9) echo "Your powl() is working correctly." >&4 ;;
*)