summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2005-08-13 06:37:18 +0000
committergrant <grant@pkgsrc.org>2005-08-13 06:37:18 +0000
commita22d514571f0032259d93bfc0f61ee3336677a39 (patch)
tree1a6eff5667ff3ae44f7a8cb7fdf3c3bf38d55c58 /mk/wrapper
parente234eaaaae769547fe06cc632a85d62317166ef4 (diff)
downloadpkgsrc-a22d514571f0032259d93bfc0f61ee3336677a39.tar.gz
transform -Wl,-soname to -h for sunpro
Diffstat (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/transform-sunpro-cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/wrapper/transform-sunpro-cc b/mk/wrapper/transform-sunpro-cc
index 5808a2214be..bcab7aba7b2 100644
--- a/mk/wrapper/transform-sunpro-cc
+++ b/mk/wrapper/transform-sunpro-cc
@@ -1,4 +1,4 @@
-# $NetBSD: transform-sunpro-cc,v 1.5 2005/07/06 14:29:04 rillig Exp $
+# $NetBSD: transform-sunpro-cc,v 1.6 2005/08/13 06:37:18 grant Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -63,6 +63,14 @@ case $arg in
addtocache=yes
;;
######################################################################
+# SunPro uses -h to set the shared object name.
+######################################################################
+-Wl,-soname=*)
+ arg="-h${arg#-Wl,-soname=}"
+ msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
+ addtocache=yes
+ ;;
+######################################################################
# SunPro compiler accepts -Wl,* so just pass it on through.
######################################################################
-Wl,*)