Commit b3367474 by Andrew Pinski Committed by Andrew Pinski

darwin.h (REAL_LIBGCC_SPEC): Define to use shared libgcc for shared libraries.

2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>

        * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
        libgcc for shared libraries.

From-SVN: r90049
parent ffc3e843
2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
* config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
libgcc for shared libraries.
2004-11-03 Ulrich Weigand <uweigand@de.ibm.com> 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390-protos.h (s390_split_access_reg): Add prototype. * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
......
...@@ -312,6 +312,13 @@ extern const char *darwin_fix_and_continue_switch; ...@@ -312,6 +312,13 @@ extern const char *darwin_fix_and_continue_switch;
#define LIB_SPEC "%{!static:-lSystem}" #define LIB_SPEC "%{!static:-lSystem}"
#endif #endif
/* -dynamiclib implies -shared-libgcc just like -shared would on linux. */
#define REAL_LIBGCC_SPEC \
"%{static|static-libgcc:-lgcc -lgcc_eh}\
%{!static:%{!static-libgcc:\
%{!Zdynamiclib:%{!shared-libgcc:-lgcc -lgcc_eh}\
%{shared-libgcc:-lgcc_s -lgcc} } %{Zdynamiclib:-lgcc_s}}}"
/* We specify crt0.o as -lcrt0.o so that ld will search the library path. */ /* We specify crt0.o as -lcrt0.o so that ld will search the library path. */
#undef STARTFILE_SPEC #undef STARTFILE_SPEC
......
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