diff options
author | grant <grant@pkgsrc.org> | 2005-08-13 06:37:18 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2005-08-13 06:37:18 +0000 |
commit | 6cd103ed8932549dc2ec5f843a24b25b137f3b1f (patch) | |
tree | 1a6eff5667ff3ae44f7a8cb7fdf3c3bf38d55c58 /mk/wrapper | |
parent | cf0a97fdc975ff007dd57839a3d4eef25ceb3f79 (diff) | |
download | pkgsrc-6cd103ed8932549dc2ec5f843a24b25b137f3b1f.tar.gz |
transform -Wl,-soname to -h for sunpro
Diffstat (limited to 'mk/wrapper')
-rw-r--r-- | mk/wrapper/transform-sunpro-cc | 10 |
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,*) |