pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper Teach the wrapper scripts about HP-UX *.sl ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27c36226ad0a
branches:  trunk
changeset: 487646:27c36226ad0a
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Jan 18 05:24:47 2005 +0000

description:
Teach the wrapper scripts about HP-UX *.sl shared libraries.  They
work the same way as ELF *.so shared libraries from pkgsrc's point of
view -- just the extension is different.

diffstat:

 mk/wrapper/logic |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 213864ebe22b -r 27c36226ad0a mk/wrapper/logic
--- a/mk/wrapper/logic  Tue Jan 18 04:00:18 2005 +0000
+++ b/mk/wrapper/logic  Tue Jan 18 05:24:47 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: logic,v 1.8 2005/01/10 03:40:25 jlam Exp $
+# $NetBSD: logic,v 1.9 2005/01/18 05:24:47 jlam Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -80,6 +80,19 @@
                        prepend_queue argbuf "-L$dir"
                        $debug_log $wrapperlog "    (logic) pre:  -L$dir"
                        ;;
+               /*/lib*.sl|/*/lib*.sl.[0-9]*)   # HP-UX
+                       dir="${arg%/lib*}"
+                       lib="${arg#$dir/lib}"
+                       case $lib in
+                       */*)            argok=yes; continue ;;
+                       *.sl)           lib="${lib%.sl}" ;;
+                       *.sl.[0-9]*)    lib="${lib%.sl.[0-9]*}" ;;
+                       esac
+                       prepend_queue argbuf "-l$lib"
+                       $debug_log $wrapperlog "    (logic) pre:  -l$lib"
+                       prepend_queue argbuf "-L$dir"
+                       $debug_log $wrapperlog "    (logic) pre:  -L$dir"
+                       ;;
                /*/lib*.dylib)  # Darwin      
                        dir="${arg%/lib*.dylib}"
                        lib="${arg#$dir/lib}" 



Home | Main Index | Thread Index | Old Index