diff options
author | grant <grant@pkgsrc.org> | 2005-07-04 09:48:31 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2005-07-04 09:48:31 +0000 |
commit | 669abfdb536372af7a6ba6042ef0a189d743bb5d (patch) | |
tree | 21d1e2cab0be8ce007283298fa8ae76778ae51ec /mk/wrapper | |
parent | 8fea9ce29c15894c97a0647c09a7aee1a4b1dd36 (diff) | |
download | pkgsrc-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-cc | 8 |
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. |