"[A-Z0-9_-.]*=*" { # process makefile style args like CC=gcc, etc... if [regexp "^(\[A-Z0-9_-\]+)=(.*)$" $option junk var val] { set $var $val verbose "$var is now $val" append makevars "set $var $val;" ;# FIXME: Used anywhere? unset junk var val } else { send_error "Illegal variable specification:\n" is not in /usr/share/dejagnu/runtest.exp. As the result, "make check" doesn't work in binutils/ld.
The problem is CC=gcc is processed at the first parse, instead of the second one. I am submitting a patch now.
Created attachment 55325 [details] A patch
This bug has been fixed in the dejagnu cvs a few months ago: revision 1.8 date: 2001/10/07 04:10:28; author: rsavoye; state: Exp; lines: +5 -1 2001-10-06 Gwenole Beauchesne <gbeauchesne> * Check for Makefile style arguments in the second pass, but ignore them, so they don't become invalid arguments. Please consider fixing it.