summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortez <tez@pkgsrc.org>2013-04-06 18:09:43 +0000
committertez <tez@pkgsrc.org>2013-04-06 18:09:43 +0000
commit825a5876bf4165e83081ef46539dc487f864d4bb (patch)
tree70f519302190841b12c266bc6827ba4a8942fb5d /mk
parent984edc33c6b1830f6e322de9892466e0b2c8cde1 (diff)
downloadpkgsrc-825a5876bf4165e83081ef46539dc487f864d4bb.tar.gz
The newer versions of solaris studio compilers install by default into
/opt/solstudioNN.N rather than /opt/SUNWspro so look there too.
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/sunpro.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk
index a4d370dcbb7..1678c4ab00d 100644
--- a/mk/compiler/sunpro.mk
+++ b/mk/compiler/sunpro.mk
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro.mk,v 1.47 2010/07/30 07:58:59 asau Exp $
+# $NetBSD: sunpro.mk,v 1.48 2013/04/06 18:09:43 tez Exp $
#
# This is the compiler definition for the SUNWspro C compiler.
#
@@ -16,6 +16,9 @@ COMPILER_SUNPRO_MK= defined
.include "../../mk/bsd.prefs.mk"
SUNWSPROBASE?= /opt/SUNWspro
+.if !exists($SUNWSPROBASE)
+SUNWSPROBASE!= /bin/ls -d /opt/solstudio*
+.endif
# common definitions
# XXX: should be moved to compiler.mk.