blob: fb4fa18bf7c60ed7a54acf35e6fedf097db6a604 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Copyright 2016 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/linux/pkg_config.gni")
if (default_toolchain == "//build/toolchain/cros:target") {
pkg_config("libffi") {
packages = [ "libffi" ]
}
} else {
# On Linux, statically link libffi. This is necessary to prevent a situation
# where the runtime version of libffi is different from the build-time version
# from the sysroot.
config("libffi") {
libs = [ ":libffi_pic.a" ]
}
}
|