Merge pull request #2363 from tvolkert/google3

Fix sky_snapshot build to only link libgcc_s if on Linux
This commit is contained in:
Todd Volkert
2016-02-06 16:01:10 -08:00

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",
]
}
}