From: Michael Adam Date: Mon, 25 Feb 2008 16:24:52 +0000 (+0100) Subject: Fix build on some systems : don't pass libraries to mkproto.awk X-Git-Tag: samba-3.2.0pre2~37^2~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=826b9ab07b58ca39350cca921002a4213ce7c7c9;p=thirdparty%2Fsamba.git Fix build on some systems : don't pass libraries to mkproto.awk Currently, some static libraries have gone into object lists that are also passed to make proto. (This should probably be changed...) Then some awk versions fail when passed an non- existing lib/libtdb.a e.g.. This patch changes mkproto.sh to exclude \.a files from the list of files to process. Michael --- diff --git a/source/script/mkproto.sh b/source/script/mkproto.sh index e46e73e3e90..8561f42dff0 100755 --- a/source/script/mkproto.sh +++ b/source/script/mkproto.sh @@ -25,7 +25,7 @@ header="$1" shift headertmp="$header.$$.tmp~" -proto_src="`echo $@ | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort | uniq | egrep -v 'tdb/|wrapped|modules/getdate'`" +proto_src="`echo $@ | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort | uniq | egrep -v 'tdb/|wrapped|modules/getdate' | egrep -v '\.a$'`" echo creating $header