Jim Wilson wrote:
Inside the gcc configure,
we do "test -x $NM_FOR_TARGET" and this fails because NM_FOR_TARGET
expands to more than a program name, and the shell test -x command does
not handle this case. We need to extract out the program name for this
test. This should be easy enough to do. There is an example showing
how to do this a few lines below. Want to try writing a patch?
I'm happy to try writing a patch, but my version of gcc/configure
doesn't look like what you described.
# First try the environment variables. Handle full paths or basenames.
if test "x$gcc_cv_nm" = x && test -n "$NM_FOR_TARGET"; then
# Extract the first word of "$NM_FOR_TARGET", so it can be a
program name with args.
...