From 7496ba90e5ad90babab1902f220c379cd281395b Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Sat, 6 Feb 2016 14:13:33 -0800 Subject: [PATCH] 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. --- engine/src/flutter/sky/tools/sky_snapshot/BUILD.gn | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/src/flutter/sky/tools/sky_snapshot/BUILD.gn b/engine/src/flutter/sky/tools/sky_snapshot/BUILD.gn index 7cd6974270..37af75ea8d 100644 --- a/engine/src/flutter/sky/tools/sky_snapshot/BUILD.gn +++ b/engine/src/flutter/sky/tools/sky_snapshot/BUILD.gn @@ -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", + ] }