aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin8.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/darwin8.h')
-rw-r--r--gcc/config/darwin8.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/config/darwin8.h b/gcc/config/darwin8.h
index 6a061a41caf..3fc0c1d7453 100644
--- a/gcc/config/darwin8.h
+++ b/gcc/config/darwin8.h
@@ -22,11 +22,15 @@ Boston, MA 02111-1307, USA. */
/* Darwin 7.0 and above have C99 functions. */
#define TARGET_C99_FUNCTIONS 1
-/* Machine dependent libraries. Include libmx when compiling on Darwin 7.0
- and above. Include libSystemStubs when compiling on 8.0 and above and
- not 64-bit long double. */
+/* APPLE LOCAL begin mainline */
+/* Machine dependent libraries. Include libmx when compiling on
+ Darwin 7.0 and above, but before libSystem, since the functions are
+ actually in libSystem but for 7.x compatibility we want them to be
+ looked for in libmx first. Include libSystemStubs when compiling
+ on 8.0 and above and not 64-bit long double. */
#undef LIB_SPEC
#define LIB_SPEC "%{!static:\
%{!mlong-double-64:%{pg:-lSystemStubs_profile;:-lSystemStubs}} \
- -lSystem -lmx}"
+ -lmx -lSystem}"
+/* APPLE LOCAL end mainline */