c85446836d
Move the default value for system_shared_libs out of linker.go and into a new DefaultSharedLibraries method in Toolchain. This will simplify adding system_shared_libs to cc_object, and adding new toolchains with different default system_shared_libs. Test: m checkbuild Test: go test ./cc/... Change-Id: I422315f090be20719c08a4d33bd39b0b26a93d6c
26 lines
885 B
Go
26 lines
885 B
Go
// Copyright 2015 Google Inc. All rights reserved.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package config
|
|
|
|
type toolchainBionic struct {
|
|
}
|
|
|
|
var (
|
|
bionicDefaultSharedLibraries = []string{"libc", "libm", "libdl"}
|
|
)
|
|
|
|
func (toolchainBionic) Bionic() bool { return true }
|
|
|
|
func (toolchainBionic) DefaultSharedLibraries() []string { return bionicDefaultSharedLibraries }
|