1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/sysroot.gni")
11 "-mmacosx-version-min=10.6",
15 ldflags = common_flags
18 # On Mac, this is used for everything except static libraries.
19 config("mac_dynamic_flags") {
21 "-Wl,-search_paths_first",
24 # Path for loading shared libraries for unbundled binaries.
25 "-Wl,-rpath,@loader_path/.",
27 # Path for loading shared libraries for bundled binaries. Get back from
28 # Binary.app/Contents/MacOS.
29 "-Wl,-rpath,@loader_path/../../..",
33 # On Mac, this is used only for executables.
34 config("mac_executable_flags") {
35 ldflags = [ "-Wl,-pie" ] # Position independent.