summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2005-07-04 09:48:31 +0000
committergrant <grant@pkgsrc.org>2005-07-04 09:48:31 +0000
commit669abfdb536372af7a6ba6042ef0a189d743bb5d (patch)
tree21d1e2cab0be8ce007283298fa8ae76778ae51ec /mk/wrapper
parent8fea9ce29c15894c97a0647c09a7aee1a4b1dd36 (diff)
downloadpkgsrc-669abfdb536372af7a6ba6042ef0a189d743bb5d.tar.gz
sunpro needs the -mt -lpthread arguments for POSIX threads according
to cc(1). modify the -pthread transform accordingly.
Diffstat (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/transform-sunpro-cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/wrapper/transform-sunpro-cc b/mk/wrapper/transform-sunpro-cc
index 44bd5b80b27..a8155b34620 100644
--- a/mk/wrapper/transform-sunpro-cc
+++ b/mk/wrapper/transform-sunpro-cc
@@ -1,4 +1,4 @@
-# $NetBSD: transform-sunpro-cc,v 1.2 2004/11/10 16:20:40 sketch Exp $
+# $NetBSD: transform-sunpro-cc,v 1.3 2005/07/04 09:48:31 grant Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -102,13 +102,13 @@ case $arg in
addtocache=yes
;;
######################################################################
-# SunPro doesn't understand -pthread, and only -lpthread is needed on
-# Solaris.
+# SunPro needs -mt -lpthread for POSIX threads.
######################################################################
-pthread)
- arg="-lpthread"
+ arg="-mt -lpthread"
msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
addtocache=yes
+ split_arg=yes
;;
######################################################################
# Ignore some flags that are unnecessary for SunPro.