summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-01-18 05:24:47 +0000
committerjlam <jlam@pkgsrc.org>2005-01-18 05:24:47 +0000
commit1cdb69ea246b757ff486e6b3b983a08e3d5ef572 (patch)
tree11f3d62233a80f1980516aee4561773e2b9edf0f /mk
parent9371fad6a4f7c44aafdc0b5cbe8a43909b4f8683 (diff)
downloadpkgsrc-1cdb69ea246b757ff486e6b3b983a08e3d5ef572.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}"