Always link libdl with libc++ for the NDK. am: 3895d5b246
am: 302f23977f
Change-Id: I04c8504f54ac5d248e70475edc88cfe54babded4
This commit is contained in:
commit
dc6d753e2c
10
cc/stl.go
10
cc/stl.go
|
@ -114,9 +114,15 @@ func (stl *stl) deps(ctx BaseModuleContext, deps Deps) Deps {
|
|||
// The system STL doesn't have a prebuilt (it uses the system's libstdc++), but it does have
|
||||
// its own includes. The includes are handled in CCBase.Flags().
|
||||
deps.SharedLibs = append([]string{"libstdc++"}, deps.SharedLibs...)
|
||||
case "ndk_libc++_shared", "ndk_libstlport_shared":
|
||||
case "ndk_libc++_shared":
|
||||
deps.SharedLibs = append(deps.SharedLibs, stl.Properties.SelectedStl,
|
||||
"libdl")
|
||||
case "ndk_libc++_static":
|
||||
deps.StaticLibs = append(deps.StaticLibs, stl.Properties.SelectedStl)
|
||||
deps.SharedLibs = append(deps.SharedLibs, "libdl")
|
||||
case "ndk_libstlport_shared":
|
||||
deps.SharedLibs = append(deps.SharedLibs, stl.Properties.SelectedStl)
|
||||
case "ndk_libc++_static", "ndk_libstlport_static", "ndk_libgnustl_static":
|
||||
case "ndk_libstlport_static", "ndk_libgnustl_static":
|
||||
deps.StaticLibs = append(deps.StaticLibs, stl.Properties.SelectedStl)
|
||||
default:
|
||||
panic(fmt.Errorf("Unknown stl: %q", stl.Properties.SelectedStl))
|
||||
|
|
Loading…
Reference in New Issue