summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrant <grant>2005-08-20 02:11:15 +0000
committergrant <grant>2005-08-20 02:11:15 +0000
commit9dba5c30a81f3b4ded898bf99384625ebac9abc8 (patch)
tree283ec6208d9c65e2a48914cefd9f2a55b1bf313a
parent0b7d9e2649d8614e0d4e40b8cae40912f9ac6b2a (diff)
downloadpkgsrc-9dba5c30a81f3b4ded898bf99384625ebac9abc8.tar.gz
add -xnolibmopt after -fast to disable the use of libsunmath (until it
can be sanely statically linked).
-rw-r--r--mk/wrapper/transform-sunpro-cc16
1 files changed, 14 insertions, 2 deletions
diff --git a/mk/wrapper/transform-sunpro-cc b/mk/wrapper/transform-sunpro-cc
index 9c887b26d28..66cc2e76cce 100644
--- a/mk/wrapper/transform-sunpro-cc
+++ b/mk/wrapper/transform-sunpro-cc
@@ -1,4 +1,4 @@
-# $NetBSD: transform-sunpro-cc,v 1.8 2005/08/18 05:04:49 grant Exp $
+# $NetBSD: transform-sunpro-cc,v 1.9 2005/08/20 02:11:15 grant Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -128,9 +128,21 @@ case $arg in
split_arg=yes
;;
######################################################################
+# -fast implies -xlibmopt, which uses the optimized math routines in
+# libsunmath. libsunmath is only available as part of SunPro, so
+# disable the use of the optimized math library (at least until it can
+# be statically linked).
+######################################################################
+-fast)
+ arg="-fast -xnolibmopt"
+ msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
+ addtocache=yes
+ split_arg=yes
+ ;;
+######################################################################
# Pass through -f flags that SunPro understands.
######################################################################
--fast|-fd|-features*|-flags|-flteval*|-fnonstd*|-fns*|-fprecision*|-fround*|-fsimple*|-fsingle|-fstore|-ftrap*)
+-fd|-features*|-flags|-flteval*|-fnonstd*|-fns*|-fprecision*|-fround*|-fsimple*|-fsingle|-fstore|-ftrap*)
addtocache=yes
;;
######################################################################