diff -ru a/gcc/config/darwin-driver.c b/config/darwin-driver.c
a
|
b
|
|
71 | 71 | |
72 | 72 | /* The major kernel version number is 4 plus the second OS version |
73 | 73 | component. */ |
| 74 | #ifdef USE_LD32 |
74 | 75 | if (major_vers - 4 <= 4) |
75 | 76 | /* On 10.4 and earlier, the old linker is used which does not |
76 | 77 | support three-component system versions. */ |
77 | 78 | sprintf (new_flag, "10.%d", major_vers - 4); |
78 | 79 | else |
| 80 | #endif |
79 | 81 | sprintf (new_flag, "10.%d.%s", major_vers - 4, |
80 | 82 | minor_vers); |
81 | 83 | |
diff -ru a/gcc/config/darwin.c b/gcc/config/darwin.c
a
|
b
|
|
2938 | 2938 | generating_for_darwin_version = 10; |
2939 | 2939 | else if (strverscmp (darwin_macosx_version_min, "10.5") >= 0) |
2940 | 2940 | generating_for_darwin_version = 9; |
| 2941 | #ifndef USE_LD32 |
| 2942 | else if (strverscmp (darwin_macosx_version_min, "10.4") >= 0) |
| 2943 | generating_for_darwin_version = 9; |
| 2944 | #endif |
2941 | 2945 | |
2942 | 2946 | /* Earlier versions are not specifically accounted, until required. */ |
2943 | 2947 | } |
diff -ru a/libgcc/config/rs6000/t-darwin b/libgcc/config/rs6000/t-darwin
a
|
b
|
|
1 | | DARWIN_EXTRA_CRT_BUILD_CFLAGS = -mlongcall -mmacosx-version-min=10.4 |
| 1 | DARWIN_EXTRA_CRT_BUILD_CFLAGS = -mmacosx-version-min=10.4 |
| 2 | ifeq ($(USE_LD32),1) |
| 3 | DARWIN_EXTRA_CRT_BUILD_CFLAGS += -mlongcall |
| 4 | endif |
2 | 5 | |
3 | 6 | crt2.o: $(srcdir)/config/rs6000/darwin-crt2.c |
4 | 7 | $(crt_compile) $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) -c $< |