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:
@@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user