aboutsummaryrefslogtreecommitdiff
path: root/binutils/dlltool.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-06-21 03:25:35 +0000
committerNick Clifton <nickc@redhat.com>1999-06-21 03:25:35 +0000
commit74479bd3b9ac63f0237661ce42f3bb1c0f4b7ad3 (patch)
treed1e8383a77b3e6b97821f48c458c22c5b7fd4fe3 /binutils/dlltool.c
parentba2be5816c514a743f8c6abd6fe346b915a8fb8f (diff)
downloadgdb-74479bd3b9ac63f0237661ce42f3bb1c0f4b7ad3.zip
gdb-74479bd3b9ac63f0237661ce42f3bb1c0f4b7ad3.tar.gz
gdb-74479bd3b9ac63f0237661ce42f3bb1c0f4b7ad3.tar.bz2
Link object files with the .exp file, not the .lib file
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r--binutils/dlltool.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index 9adf9b2..aa596c9 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -3430,7 +3430,7 @@ mcore_elf_gen_out_file (void)
run (program_name, outfile);
- /* Step four. Feed the .exp and .lib files to ld -shared to create the dll. */
+ /* Step four. Feed the .exp and object files to ld -shared to create the dll. */
strcpy (outfile, "-shared ");
if (mcore_elf_linker_flags)
@@ -3439,17 +3439,14 @@ mcore_elf_gen_out_file (void)
strcat (outfile, " ");
strcat (outfile, MCORE_ELF_TMP_EXP);
strcat (outfile, " ");
- strcat (outfile, MCORE_ELF_TMP_LIB);
+ strcat (outfile, MCORE_ELF_TMP_OBJ);
strcat (outfile, " -o ");
strcat (outfile, mcore_elf_out_file);
run (mcore_elf_linker, outfile);
if (dontdeltemps == 0)
- {
- unlink (MCORE_ELF_TMP_EXP);
- unlink (MCORE_ELF_TMP_LIB);
- }
+ unlink (MCORE_ELF_TMP_EXP);
if (dontdeltemps < 2)
unlink (MCORE_ELF_TMP_OBJ);