This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Link tests not allowed
- From: Douglas B Rupp <rupp at gnat dot com>
- To: Jim Wilson <wilson at specifix dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 31 Dec 2006 19:31:18 -0800
- Subject: Re: Link tests not allowed
- References: <4595A89E.5010307@gnat.com> <45986E07.6050601@specifix.com>
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.
...