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("//native_client/build/config/sysroot.gni")
10 "-mmacosx-version-min=10.6"
14 ldflags = common_flags
17 # On Mac, this is used for everything except static libraries.
18 config("mac_dynamic_flags") {
20 "-Wl,-search_paths_first",
22 # Path for loading shared libraries for unbundled binaries.
23 "-Wl,-rpath,@loader_path/.",
24 # Path for loading shared libraries for bundled binaries. Get back from
25 # Binary.app/Contents/MacOS.
26 "-Wl,-rpath,@loader_path/../../..",
30 # On Mac, this is used only for executables.
31 config("mac_executable_flags") {
33 "-Wl,-pie", # Position independent.