diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2004-11-04 02:30:26 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-11-03 18:30:26 -0800 |
commit | b336747402980567163bc6d61556a8d34c0efd7b (patch) | |
tree | 94543e39ab4ada53ecf24a88f5cf29c7ec6e1f6c | |
parent | ffc3e8435054fb0f903262fc453639ba5ba8b7aa (diff) | |
download | gcc-b336747402980567163bc6d61556a8d34c0efd7b.zip gcc-b336747402980567163bc6d61556a8d34c0efd7b.tar.gz gcc-b336747402980567163bc6d61556a8d34c0efd7b.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/darwin.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca92f93..1f1d3db 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * config/s390/s390-protos.h (s390_split_access_reg): Add prototype. diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 83aa2dd..c1d6b8f 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -312,6 +312,13 @@ extern const char *darwin_fix_and_continue_switch; #define LIB_SPEC "%{!static:-lSystem}" #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. */ #undef STARTFILE_SPEC |