aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorLaurynas Biveinis <lauras@softhome.net>2001-03-04 09:08:25 +0000
committerLaurynas Biveinis <lauras@gcc.gnu.org>2001-03-04 09:08:25 +0000
commit91c704c4589f1d5e2a9d4cf3e070b56907cf5f61 (patch)
treea3560db6cd52c029f8e243143e9494e86f02061b /gcc/gcc.c
parentff37fbba4469dd42f34f4cdd8eecdbd6e42162ae (diff)
downloadgcc-91c704c4589f1d5e2a9d4cf3e070b56907cf5f61.zip
gcc-91c704c4589f1d5e2a9d4cf3e070b56907cf5f61.tar.gz
gcc-91c704c4589f1d5e2a9d4cf3e070b56907cf5f61.tar.bz2
gcc.c (convert_filename): Append executable suffix if NO_AUTO_EXE_SUFFIX is not defined.
* gcc.c (convert_filename): Append executable suffix if NO_AUTO_EXE_SUFFIX is not defined. * gcc.texi: Document NO_AUTO_EXE_SUFFIX. * config/i386/djgpp.h: Define NO_AUTO_EXE_SUFFIX. From-SVN: r40229
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 780b1c1..ddf3f61 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -2888,7 +2888,7 @@ convert_filename (name, do_exe)
}
#endif
-#ifdef HAVE_EXECUTABLE_SUFFIX
+#if defined(HAVE_EXECUTABLE_SUFFIX) && !defined(NO_AUTO_EXE_SUFFIX)
/* If there is no filetype, make it the executable suffix (which includes
the "."). But don't get confused if we have just "-o". */
if (! do_exe || EXECUTABLE_SUFFIX[0] == 0 || (len == 2 && name[0] == '-'))