Remove -nodefaultlibs and -nostdinc++
-nostdinc++ is already passed by the build system for stl: "none". -nodefaultlibs was prevoiusly passed by the build system, but has been replaced with -nostdlib++ to avoid having to manually pass all the other default libraries on the command line. Passing -nodefaultlibs here causes libc++ to no longer link against libc. Test: m checkbuild Change-Id: Ib3392d545f68be594800fe806ecd365f830d201e
This commit is contained in:
@@ -22,7 +22,6 @@ cc_defaults {
|
|||||||
cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
|
cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
|
||||||
cppflags: [
|
cppflags: [
|
||||||
"-std=c++14",
|
"-std=c++14",
|
||||||
"-nostdinc++",
|
|
||||||
"-fexceptions",
|
"-fexceptions",
|
||||||
"-DLIBCXX_BUILDING_LIBCXXABI",
|
"-DLIBCXX_BUILDING_LIBCXXABI",
|
||||||
"-D_LIBCPP_BUILDING_LIBRARY",
|
"-D_LIBCPP_BUILDING_LIBRARY",
|
||||||
@@ -126,14 +125,10 @@ cc_library_shared {
|
|||||||
force_symbols_not_weak_list: "lib/notweak.exp",
|
force_symbols_not_weak_list: "lib/notweak.exp",
|
||||||
force_symbols_weak_list: "lib/weak.exp",
|
force_symbols_weak_list: "lib/weak.exp",
|
||||||
ldflags: [
|
ldflags: [
|
||||||
"-nodefaultlibs",
|
|
||||||
"-Wl,-undefined,dynamic_lookup",
|
"-Wl,-undefined,dynamic_lookup",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
linux_glibc: {
|
|
||||||
ldflags: ["-nodefaultlibs"],
|
|
||||||
},
|
|
||||||
linux_bionic: {
|
linux_bionic: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user