diff options
author | jlam <jlam> | 2005-01-18 05:24:47 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-01-18 05:24:47 +0000 |
commit | f8e4ad402ca7fcb7a3a7238e2dde9a343ccb3fd2 (patch) | |
tree | 11f3d62233a80f1980516aee4561773e2b9edf0f /mk/wrapper | |
parent | 90b2b5ecdb4f57ba510c93be6c75e4afaea7792d (diff) | |
download | pkgsrc-f8e4ad402ca7fcb7a3a7238e2dde9a343ccb3fd2.tar.gz |
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 (limited to 'mk/wrapper')
-rw-r--r-- | mk/wrapper/logic | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mk/wrapper/logic b/mk/wrapper/logic index 23835dd3c9f..f8d9e7dab46 100644 --- a/mk/wrapper/logic +++ b/mk/wrapper/logic @@ -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 @@ while ! queue_is_empty argbuf; do 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}" |