Ticket #53605: patch-use-libcxx.diff
File patch-use-libcxx.diff, 1006 bytes (added by RJVB (René Bertin), 8 years ago) |
---|
-
g++spec.c
old new 46 46 #endif 47 47 48 48 #ifndef LIBSTDCXX 49 #define LIBSTDCXX "stdc++" 49 #define LIBSTDCXX "c++" 50 #define LIBSTDCXXABI "c++abi" 50 51 #endif 51 # ifndef LIBSTDCXX_PROFILE52 #undef LIBSTDCXX_PROFILE 52 53 #define LIBSTDCXX_PROFILE LIBSTDCXX 53 #endif 54 54 55 #ifndef LIBSTDCXX_STATIC 55 #define LIBSTDCXX_STATIC NULL 56 // this is a hack, probably to be dropped on systems that have a new enough libc++ 57 // which has `operator delete(void*, unsigned long)` 58 #define LIBSTDCXX_STATIC "stdc++" 56 59 #endif 57 60 58 61 void … … 347 350 CL_DRIVER, &new_decoded_options[j]); 348 351 added_libraries++; 349 352 j++; 353 // add -lc++abi 354 generate_option (OPT_l, LIBSTDCXXABI, 1, 355 CL_DRIVER, &new_decoded_options[j]); 356 added_libraries++; 357 j++; 350 358 /* Add target-dependent static library, if necessary. */ 351 359 if ((static_link || library > 1) && LIBSTDCXX_STATIC != NULL) 352 360 {