summaryrefslogtreecommitdiff
path: root/mk/buildlink2/libtool-logic
diff options
context:
space:
mode:
Diffstat (limited to 'mk/buildlink2/libtool-logic')
-rw-r--r--mk/buildlink2/libtool-logic43
1 files changed, 0 insertions, 43 deletions
diff --git a/mk/buildlink2/libtool-logic b/mk/buildlink2/libtool-logic
deleted file mode 100644
index 6813218eba3..00000000000
--- a/mk/buildlink2/libtool-logic
+++ /dev/null
@@ -1,43 +0,0 @@
-# $NetBSD: libtool-logic,v 1.5 2003/01/07 07:34:39 jlam Exp $
-
-case $arg in
--L.|-L./*|-L..*|-L${WRKSRC}*)
- case $fixlibpath in
- yes)
- case $arg in
- */.libs)
- # ignore -L.../.libs
- ;;
- *)
- $echo "*** [buildlink2] Warning: libtool detected $arg" >> $wrapperlog
- $echo "*** [buildlink2] Warning: libtool detected $arg" 1>&2
- lpath=`$echo "X$arg" | $Xsed -e "s/^-L//"`
- case "$rellpath" in
- *"$lpath "*) ;;
- *"$lpath"*) ;;
- *) rellpath="$rellpath $lpath" ;;
- esac
- ;;
- esac
- ;;
- esac
- ;;
--l*)
- case $fixlibpath in
- yes)
- lib=`$echo "X$arg" | $Xsed -e "s/^-l//"`
- for dir in $rellpath; do
- la="$dir/lib$lib.la"
- if $test -f "$la"; then
- $echo "*** [buildlink2] Warning: libtool replaced $arg with $la" >> $wrapperlog
- $echo "*** [buildlink2] Warning: libtool replaced $arg with $la" 1>&2
- arg="$la"
- cachesettings='skipcache=yes'
- break
- fi
- done
- ;;
- esac
- addtoprivatecache=yes
- ;;
-esac