Ticket #53605: patch-use-libcxx.2.diff
File patch-use-libcxx.2.diff, 1.4 KB (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 { -
incpath.c
old new 129 129 int relocated = cpp_relocated (); 130 130 size_t len; 131 131 132 if (cxx_stdinc) { 133 add_path (xstrdup ("@PREFIX@/libexec/llvm-3.9/include/c++/v1"), SYSTEM, true, false); 134 } 132 135 if (iprefix && (len = cpp_GCC_INCLUDE_DIR_len) != 0) 133 136 { 134 137 /* Look for directories that start with the standard prefix.