| Index: build/config/mac/BUILD.gn
|
| diff --git a/build/config/mac/BUILD.gn b/build/config/mac/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1234af1c45f554f6d67bc18d4e2b14d48d14d7df
|
| --- /dev/null
|
| +++ b/build/config/mac/BUILD.gn
|
| @@ -0,0 +1,37 @@
|
| +# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import("//build/config/sysroot.gni")
|
| +
|
| +config("sdk") {
|
| + common_flags = [
|
| + "-isysroot",
|
| + sysroot,
|
| + "-mmacosx-version-min=10.9",
|
| + ]
|
| +
|
| + asmflags = common_flags
|
| + cflags = common_flags
|
| + ldflags = common_flags
|
| +}
|
| +
|
| +# On Mac, this is used for everything except static libraries.
|
| +config("mac_dynamic_flags") {
|
| + ldflags = [
|
| + "-Wl,-search_paths_first",
|
| + "-L.",
|
| +
|
| + # Path for loading shared libraries for unbundled binaries.
|
| + "-Wl,-rpath,@loader_path/.",
|
| +
|
| + # Path for loading shared libraries for bundled binaries. Get back from
|
| + # Binary.app/Contents/MacOS.
|
| + "-Wl,-rpath,@loader_path/../../..",
|
| + ]
|
| +}
|
| +
|
| +# On Mac, this is used only for executables.
|
| +config("mac_executable_flags") {
|
| + ldflags = [ "-Wl,-pie" ] # Position independent.
|
| +}
|
|
|