Filter out -R and -Wl.-R arguments that point to /usr/local as well as

just -I and -L (modulo if LOCALBASE == /usr/local).
This commit is contained in:
jlam 2002-09-07 07:33:14 +00:00
parent 5bec783195
commit 6a3ef162c6
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: bsd.buildlink2.mk,v 1.17 2002/09/06 14:39:41 jlam Exp $
# $NetBSD: bsd.buildlink2.mk,v 1.18 2002/09/07 07:33:14 jlam Exp $
#
# An example package buildlink2.mk file:
#
@ -217,6 +217,8 @@ _BLNK_TRANSFORM+= LL:${X11BASE}:${BUILDLINK_X11PKG_DIR},${BUILDLINK_X11_DIR}
. if ${LOCALBASE} != ${_localbase_}
_BLNK_TRANSFORM+= r:-I${_localbase_}
_BLNK_TRANSFORM+= r:-L${_localbase_}
_BLNK_TRANSFORM+= r:-Wl,-R${_localbase_}
_BLNK_TRANSFORM+= r:-R${_localbase_}
. endif
.endfor
#

View file

@ -1,4 +1,4 @@
# $NetBSD: post-cache,v 1.3 2002/09/03 21:36:18 jlam Exp $
# $NetBSD: post-cache,v 1.4 2002/09/07 07:33:15 jlam Exp $
*)
case $arg in
@ -42,7 +42,7 @@
;;
esac
;;
-[ILl]*|-Wl,*|@LOCALBASE@/*/lib*|@X11BASE@/*/lib*)
-[ILRl]*|-Wl,*|@LOCALBASE@/*/lib*|@X11BASE@/*/lib*)
newarg=`@ECHO@ "X$arg" | $Xsed \
@_BLNK_TRANSFORM_SED.1@ \
@_BLNK_TRANSFORM_SED.2@ \