(LIBGCC_SPEC): Do link with libgcc when -shared.

From-SVN: r10677
This commit is contained in:
Jason Merrill 1995-12-05 03:26:37 +00:00
parent 52a08fa63e
commit bacebbcf51
1 changed files with 2 additions and 2 deletions

View File

@ -490,9 +490,9 @@ proper position among the other output files. */
#ifndef LIBGCC_SPEC
#if defined(LINK_LIBGCC_SPECIAL) || defined(LINK_LIBGCC_SPECIAL_1)
/* Have gcc do the search for libgcc.a. */
#define LIBGCC_SPEC "%{!shared:libgcc.a%s}"
#define LIBGCC_SPEC "libgcc.a%s"
#else
#define LIBGCC_SPEC "%{!shared:-lgcc}"
#define LIBGCC_SPEC "-lgcc"
#endif
#endif