This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/39888] TLS emutls not linked to automatically on Darwin
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Oct 2009 13:59:47 -0000
- Subject: [Bug other/39888] TLS emutls not linked to automatically on Darwin
- References: <bug-39888-4688@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #56 from howarth at nitro dot med dot uc dot edu 2009-10-01 13:59 -------
Okay. So no problem. What do you think is the best way to default on
libgcc-ext? Just using...
Index: gcc/config/darwin.h
===================================================================
--- gcc/config/darwin.h (revision 152370)
+++ gcc/config/darwin.h (working copy)
@@ -388,14 +388,14 @@
If it is linked against, it has to be before -lgcc, because it may
need symbols from -lgcc. */
#undef REAL_LIBGCC_SPEC
-#define REAL_LIBGCC_SPEC \
- "%{static-libgcc|static: -lgcc_eh -lgcc; \
- shared-libgcc|fexceptions|fgnu-runtime: \
- %:version-compare(!> 10.5 mmacosx-version-min= -lgcc_s.10.4) \
- %:version-compare(>= 10.5 mmacosx-version-min= -lgcc_s.10.5) \
- -lgcc; \
- :%:version-compare(>< 10.3.9 10.5 mmacosx-version-min= -lgcc_s.10.4) \
- %:version-compare(>= 10.5 mmacosx-version-min= -lgcc_s.10.5) \
+#define REAL_LIBGCC_SPEC
\
+ "%{static-libgcc|static: -lgcc_eh -lgcc;
\
+ shared-libgcc|fexceptions|fgnu-runtime:
\
+ %:version-compare(!> 10.5 mmacosx-version-min= -lgcc_s.10.4
-lgcc_ext.10.4) \
+ %:version-compare(>= 10.5 mmacosx-version-min= -lgcc_s.10.5
-lgcc_ext.10.5) \
+ -lgcc;
\
+ :%:version-compare(>< 10.3.9 10.5 mmacosx-version-min= -lgcc_s.10.4
-lgcc_ext.10.4) \
+ %:version-compare(>= 10.5 mmacosx-version-min= -lgcc_s.10.5
-lgcc_ext.10.5) \
-lgcc}"
/* We specify crt0.o as -lcrt0.o so that ld will search the library path.
...perhaps?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39888