# $NetBSD: libtool-post-cache,v 1.5 2004/05/17 10:37:57 jlam Exp $
#
# This file implements the default action of the "libtool" private
# cache.

# Skip the common cache lookup for all directories and library args that
# may reference a locally-linked libtool archive.  Avoid matching the
# buildlink directory here for the WRKSRC == WRKDIR case.
#
-L${BUILDLINK_DIR}/*)
	;;
-L.|-L./*|-L..*|-L[!/]*|-L${WRKSRC}*|-l*)
	skipcache=yes
	;;

# Skip the common cache lookup for all libtool archives that reference a
# locally-linked libtool archive.
#
./*.la|../*.la|[!-/]*.la|${WRKSRC}/*.la)
	skipcache=yes
	;;
esac
