Keep libraries specified as .a files in their original position among

other libraries (specified with -l).

Fixes a linking problem in net-snmp, where the Perl DynaLoader.a library
becomes out-of-order when all -l arguments have been moved to the end of
the command line.
This commit is contained in:
kim 2008-04-20 12:24:21 +00:00
parent 8bfb4c61bc
commit d105f33986

View file

@ -1,4 +1,4 @@
# $NetBSD: buildcmd,v 1.2 2007/11/08 17:38:17 he Exp $
# $NetBSD: buildcmd,v 1.3 2008/04/20 12:24:21 kim Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@ -65,7 +65,7 @@ case $arg in
cmd="$cmd $arg"
libs="$libs $arg"
;;
-l*)
-l*|*.a)
case $libs in
*" "$arg)
;;