Pass -lgcc_s to sky_snapshot build.

libgcc_s is not a DT_NEEDED library; it gets loaded implicitly.
This change ensures that rpath is referenced when searching for
the so. This in turn gets the resulting sky_snapshot binary
closer to being able to run in Google's production environment.
This commit is contained in:
Todd Volkert
2016-02-06 14:13:33 -08:00
parent 59e953be16
commit 7496ba90e5

View File

@@ -23,4 +23,12 @@ executable("sky_snapshot") {
"//sky/engine/bindings:snapshot_cc",
"//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",
]
}