summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-01-18 05:24:47 +0000
committerjlam <jlam>2005-01-18 05:24:47 +0000
commit94788ffc083803b38f3cea68577e96490e56f6ae (patch)
tree11f3d62233a80f1980516aee4561773e2b9edf0f /mk
parent6063c66ad8aed281b7dbe3090df55399d2034a3c (diff)
downloadpkgsrc-94788ffc083803b38f3cea68577e96490e56f6ae.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')
-rw-r--r--mk/wrapper/logic15
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}"