pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/wrapper transform -Wl,-soname to -h for sunpro



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fbec818624b5
branches:  trunk
changeset: 498120:fbec818624b5
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Aug 13 06:37:18 2005 +0000

description:
transform -Wl,-soname to -h for sunpro

diffstat:

 mk/wrapper/transform-sunpro-cc |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 8f53536ac23b -r fbec818624b5 mk/wrapper/transform-sunpro-cc
--- a/mk/wrapper/transform-sunpro-cc    Sat Aug 13 05:56:22 2005 +0000
+++ b/mk/wrapper/transform-sunpro-cc    Sat Aug 13 06:37:18 2005 +0000
@@ -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 @@
        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,*)



Home | Main Index | Thread Index | Old Index