Fix sky_snapshot build to only link libgcc_s if on Linux

This commit is contained in:
Todd Volkert 2016-02-06 15:55:48 -08:00
parent 413f98e1ed
commit 0ecee00696

View File

@ -24,11 +24,13 @@ executable("sky_snapshot") {
"//third_party/zlib",
]
ldflags = [
# libgcc_s is not a DT_NEEDED library; it normally gets loaded implicitly.
# This flag ensures that rpath is referenced when searching for
# the so, which in turn gets the resulting sky_snapshot binary
# closer to being able to run in Google's production environment.
"-lgcc_s",
]
if (!is_ios && !is_mac) {
ldflags = [
# libgcc_s is not a DT_NEEDED library; it normally gets loaded implicitly.
# This flag ensures that rpath is referenced when searching for
# the so, which in turn gets the resulting sky_snapshot binary
# closer to being able to run in Google's production environment.
"-lgcc_s",
]
}
}