Commit bacebbcf by Jason Merrill

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

From-SVN: r10677
parent 52a08fa6
...@@ -490,9 +490,9 @@ proper position among the other output files. */ ...@@ -490,9 +490,9 @@ proper position among the other output files. */
#ifndef LIBGCC_SPEC #ifndef LIBGCC_SPEC
#if defined(LINK_LIBGCC_SPECIAL) || defined(LINK_LIBGCC_SPECIAL_1) #if defined(LINK_LIBGCC_SPECIAL) || defined(LINK_LIBGCC_SPECIAL_1)
/* Have gcc do the search for libgcc.a. */ /* Have gcc do the search for libgcc.a. */
#define LIBGCC_SPEC "%{!shared:libgcc.a%s}" #define LIBGCC_SPEC "libgcc.a%s"
#else #else
#define LIBGCC_SPEC "%{!shared:-lgcc}" #define LIBGCC_SPEC "-lgcc"
#endif #endif
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment