diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-22 22:50:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-22 22:50:22 +0000 |
commit | 2481e6a24fbcf780f29ea9098600271347df57e3 (patch) | |
tree | 0dfa0b5a485eed3864c54300de223af5c63b7e9c /binutils/dlltool.c | |
parent | 03ae5f594ecda3eccaa441dd8454889379980c1d (diff) | |
download | gdb-2481e6a24fbcf780f29ea9098600271347df57e3.zip gdb-2481e6a24fbcf780f29ea9098600271347df57e3.tar.gz gdb-2481e6a24fbcf780f29ea9098600271347df57e3.tar.bz2 |
1999-06-23 Mumit Khan <khan@xraylith.wisc.edu>
* configure.in (HAVE_EXECUTABLE_SUFFIX): Define.
* dlltool.c (look_for_prog): Use HAVE_EXECUTABLE_SUFFIX.
* dllwrap.c (look_for_prog): Likewise.
* resrc.c (look_for_default): Likewise.
* configure, config.in: Rebuild.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r-- | binutils/dlltool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 144fd90..6f8a26c 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -3322,7 +3322,7 @@ main (ac, av) /* Look for the program formed by concatenating PROG_NAME and the string running from PREFIX to END_PREFIX. If the concatenated string contains a '/', try appending EXECUTABLE_SUFFIX if it is - defined. */ + appropriate. */ static char * look_for_prog (prog_name, prefix, end_prefix) @@ -3335,7 +3335,7 @@ look_for_prog (prog_name, prefix, end_prefix) cmd = xmalloc (strlen (prefix) + strlen (prog_name) -#ifdef EXECUTABLE_SUFFIX +#ifdef HAVE_EXECUTABLE_SUFFIX + strlen (EXECUTABLE_SUFFIX) #endif + 10); @@ -3348,7 +3348,7 @@ look_for_prog (prog_name, prefix, end_prefix) int found; found = (stat (cmd, &s) == 0 -#ifdef EXECUTABLE_SUFFIX +#ifdef HAVE_EXECUTABLE_SUFFIX || stat (strcat (cmd, EXECUTABLE_SUFFIX), &s) == 0 #endif ); |