Commit b8a1087d by Dave Korn Committed by Dave Korn

re PR bootstrap/37660 (Error Building libssp, recent update)

	PR bootstrap/37660
	* config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
	(LIBGCC_SPEC):  Don't define.
	(REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.

From-SVN: r143552
parent dbbe6937
2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
PR bootstrap/37660
* config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
(LIBGCC_SPEC): Don't define.
(REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
2009-01-21 Uros Bizjak <ubizjak@gmail.com>
PR rtl-optimization/38879
......
......@@ -49,9 +49,26 @@ along with GCC; see the file COPYING3. If not see
GCC without making a new CYGWIN.DLL, so we leave it. Profiling is handled
by calling the init function from main. */
#undef LIBGCC_SPEC
#define LIBGCC_SPEC \
"%{mno-cygwin: %{mthreads:-lmingwthrd} -lmingw32} -lgcc \
#ifdef ENABLE_SHARED_LIBGCC
#define SHARED_LIBGCC_SPEC " \
%{static|static-libgcc:-lgcc -lgcc_eh} \
%{!static: \
%{!static-libgcc: \
%{!shared: \
%{!shared-libgcc:-lgcc -lgcc_eh} \
%{shared-libgcc:-lgcc_s -lgcc} \
} \
%{shared:-lgcc_s -lgcc} \
} \
} "
#else
#define SHARED_LIBGCC_SPEC " -lgcc "
#endif
#undef REAL_LIBGCC_SPEC
#define REAL_LIBGCC_SPEC \
"%{mno-cygwin: %{mthreads:-lmingwthrd} -lmingw32} \
" SHARED_LIBGCC_SPEC " \
%{mno-cygwin:-lmoldname -lmingwex -lmsvcrt}"
/* We have to dynamic link to get to the system DLLs. All of libc, libm and
......
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