From 3cc8d82895eaaddc52df166ceb0e5d7c3cc40588 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 18 Apr 2018 18:15:50 -0700 Subject: [PATCH] Fix more Linux unittest targets. (#5045) --- shell/common/BUILD.gn | 3 +++ shell/platform/embedder/BUILD.gn | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/shell/common/BUILD.gn b/shell/common/BUILD.gn index 25edcfa23bd..49227bdfdc2 100644 --- a/shell/common/BUILD.gn +++ b/shell/common/BUILD.gn @@ -134,4 +134,7 @@ executable("shell_unittests") { "//third_party/skia", "//topaz/lib/tonic", ] + if (is_linux) { + ldflags = [ "-rdynamic" ] + } } diff --git a/shell/platform/embedder/BUILD.gn b/shell/platform/embedder/BUILD.gn index 1405cc119be..5e04cfcd47a 100644 --- a/shell/platform/embedder/BUILD.gn +++ b/shell/platform/embedder/BUILD.gn @@ -50,6 +50,10 @@ executable("embedder_unittests") { ":fixtures", "$flutter_root/testing", ] + + if (is_linux) { + ldflags = [ "-rdynamic" ] + } } shared_library("flutter_engine") {