diff options
Diffstat (limited to 'gcc/cp/g++spec.c')
-rw-r--r-- | gcc/cp/g++spec.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c index e6c9ee6892a..a73db2a4352 100644 --- a/gcc/cp/g++spec.c +++ b/gcc/cp/g++spec.c @@ -46,6 +46,10 @@ Boston, MA 02111-1307, USA. */ #define LIBSTDCXX_PROFILE "-lstdc++" #endif +/* APPLE LOCAL begin radar 3554191 */ +extern unsigned int macosx_version_min_required; /* defined in gcc.c */ +/* APPLE LOCAL end radar 3554191 */ + void lang_specific_driver (int *in_argc, const char *const **in_argv, int *in_added_libraries) @@ -241,6 +245,13 @@ lang_specific_driver (int *in_argc, const char *const **in_argv, shared_libgcc = 0; #endif + /* APPLE LOCAL begin radar 3554191 */ + { + if (macosx_version_min_required && macosx_version_min_required < 1040) + shared_libgcc = 0; + } + /* APPLE LOCAL end radar 3554191 */ + /* Make sure to have room for the trailing NULL argument. */ num_args = argc + added + need_math + shared_libgcc + (library > 0) + 1; arglist = xmalloc (num_args * sizeof (char *)); |