From: Nick Clifton Date: Mon, 21 Jun 1999 03:25:35 +0000 (+0000) Subject: Link object files with the .exp file, not the .lib file X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fe41e862d5fb09e6135bf941a36ec767a5fdb9b1;p=pf3gnuchains%2Fpf3gnuchains3x.git Link object files with the .exp file, not the .lib file --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 3e689b9798..e2f8b481c9 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +1999-06-17 Nick Clifton + + * dlltool.c (mcore_elf_gen_out_file): Link object files with the + .exp file, not the .lib file. + Fri Jun 18 20:17:51 1999 Mumit Khan * deflex.l: Accept single-character symbol names. diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 9adf9b2b99..aa596c9145 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);