mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix sky_snapshot build to only link libgcc_s if on Linux
This commit is contained in:
parent
413f98e1ed
commit
0ecee00696
@ -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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user