diff options
author | mtklein <mtklein@chromium.org> | 2016-09-01 09:15:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-01 09:15:44 -0700 |
commit | bb35a6aa2d4033a7aa50355558152fe647bc6fa5 (patch) | |
tree | eaceee61ee1979d4ca39c5993ca50115f97ad962 | |
parent | 4bb029cd9f7c00ac146df1f4c66d1ac5c078b78b (diff) |
GN: add extra_ldflags
This is mostly just handy for hacking around while building out other GN features.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2300963003
Review-Url: https://codereview.chromium.org/2300963003
-rw-r--r-- | gn/BUILD.gn | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn index 34ccd38d73..f36f04f573 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -17,6 +17,7 @@ declare_args() { extra_cflags = "" extra_cflags_c = "" extra_cflags_cc = "" + extra_ldflags = "" compiler_prefix = "" } @@ -171,7 +172,7 @@ toolchain("gcc_like") { rpath = "-Wl,-install_name,@rpath/$soname" } - command = "$compiler_prefix $cxx -shared {{ldflags}} {{inputs}} {{solibs}} {{libs}} $rpath -o {{output}}" + command = "$compiler_prefix $cxx -shared {{ldflags}} {{inputs}} {{solibs}} {{libs}} $rpath $extra_ldflags -o {{output}}" outputs = [ "{{root_out_dir}}/$soname", ] @@ -181,7 +182,7 @@ toolchain("gcc_like") { } tool("link") { - command = "$compiler_prefix $cxx {{ldflags}} {{inputs}} {{solibs}} {{libs}} -o {{output}}" + command = "$compiler_prefix $cxx {{ldflags}} {{inputs}} {{solibs}} {{libs}} $extra_ldflags -o {{output}}" outputs = [ "{{root_out_dir}}/{{target_output_name}}{{output_extension}}", ] |