pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/wrapper sunpro needs the -mt -lpthread arguments fo...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a36ecdc53b2b
branches: trunk
changeset: 496580:a36ecdc53b2b
user: grant <grant%pkgsrc.org@localhost>
date: Mon Jul 04 09:48:31 2005 +0000
description:
sunpro needs the -mt -lpthread arguments for POSIX threads according
to cc(1). modify the -pthread transform accordingly.
diffstat:
mk/wrapper/transform-sunpro-cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (26 lines):
diff -r 088ab5ec45ee -r a36ecdc53b2b mk/wrapper/transform-sunpro-cc
--- a/mk/wrapper/transform-sunpro-cc Sun Jul 03 19:49:06 2005 +0000
+++ b/mk/wrapper/transform-sunpro-cc Mon Jul 04 09:48:31 2005 +0000
@@ -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 @@
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.
Home |
Main Index |
Thread Index |
Old Index