same code
This commit is contained in:
parent
2517b318eb
commit
645b599225
@ -1,6 +1,6 @@
|
|||||||
#-*- mode: Makefile; tab-width: 4; -*-
|
#-*- mode: Makefile; tab-width: 4; -*-
|
||||||
# ex:ts=4 sw=4 filetype=make:
|
# ex:ts=4 sw=4 filetype=make:
|
||||||
# $OpenBSD: bsd.port.mk,v 1.1128 2011/11/15 20:08:36 espie Exp $
|
# $OpenBSD: bsd.port.mk,v 1.1129 2011/11/15 20:32:35 espie Exp $
|
||||||
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
|
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
|
||||||
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
|
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
|
||||||
#
|
#
|
||||||
@ -1604,6 +1604,14 @@ _check_needed = \
|
|||||||
needed=true; \
|
needed=true; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# both wantlib-args use this
|
||||||
|
_show_found = \
|
||||||
|
for k in $$found; do \
|
||||||
|
case $$k in *.a) ;; \
|
||||||
|
*) echo "-W $$k";; \
|
||||||
|
esac; \
|
||||||
|
done
|
||||||
|
|
||||||
# fairly good approximation of libraries we want
|
# fairly good approximation of libraries we want
|
||||||
# XXX this is ksh, be less perfect with pure sh
|
# XXX this is ksh, be less perfect with pure sh
|
||||||
_lib=/lib*.{so.+([0-9]).+([0-9]),a}
|
_lib=/lib*.{so.+([0-9]).+([0-9]),a}
|
||||||
@ -3056,11 +3064,7 @@ port-wantlib-args:
|
|||||||
@${_cache_fragment}; \
|
@${_cache_fragment}; \
|
||||||
if found=`${_list_port_libs} | ${_resolve_lib} ${_DEPRUNLIBS:QL}`; \
|
if found=`${_list_port_libs} | ${_resolve_lib} ${_DEPRUNLIBS:QL}`; \
|
||||||
then \
|
then \
|
||||||
for k in $$found; do \
|
${_show_found}; \
|
||||||
case $$k in *.a) ;; \
|
|
||||||
*) echo "-W $$k";; \
|
|
||||||
esac; \
|
|
||||||
done; \
|
|
||||||
else \
|
else \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
@ -3075,11 +3079,7 @@ fake-wantlib-args:
|
|||||||
esac; \
|
esac; \
|
||||||
done } | perl -pe 's,\Q${WRKINST}\E,,g' | \
|
done } | perl -pe 's,\Q${WRKINST}\E,,g' | \
|
||||||
${_resolve_lib} ${_DEPRUNLIBS:QL}`; then \
|
${_resolve_lib} ${_DEPRUNLIBS:QL}`; then \
|
||||||
for k in $$found; do \
|
${_show_found}; \
|
||||||
case $$k in *.a) ;; \
|
|
||||||
*) echo "-W $$k";; \
|
|
||||||
esac; \
|
|
||||||
done; \
|
|
||||||
else \
|
else \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user