summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant>2005-07-04 09:48:31 +0000
committergrant <grant>2005-07-04 09:48:31 +0000
commit0a9387f46b3f2269bfb9307d75743d1fd8fc7503 (patch)
tree21d1e2cab0be8ce007283298fa8ae76778ae51ec /mk
parente4594e38268d85b494210919ed03d0f38f2fba38 (diff)
downloadpkgsrc-0a9387f46b3f2269bfb9307d75743d1fd8fc7503.tar.gz
sunpro needs the -mt -lpthread arguments for POSIX threads according
to cc(1). modify the -pthread transform accordingly.
Diffstat (limited to 'mk')
-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.