From 2dd89e8e548d2d0dab028337b1d60aa196d8725c Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 3 Nov 2015 14:10:33 -0800 Subject: [PATCH] Set the default linker run time search path on Mac and iOS --- engine/src/flutter/build/toolchain/mac/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/build/toolchain/mac/BUILD.gn b/engine/src/flutter/build/toolchain/mac/BUILD.gn index 9c52e89f22..10a77844b6 100644 --- a/engine/src/flutter/build/toolchain/mac/BUILD.gn +++ b/engine/src/flutter/build/toolchain/mac/BUILD.gn @@ -183,7 +183,7 @@ template("mac_toolchain") { tool("link") { outfile = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" rspfile = "$outfile.rsp" - command = "$ld $sysroot_flags $toolchain_flags {{ldflags}} -o $outfile -Wl,-filelist,$rspfile {{solibs}} {{libs}}" + command = "$ld $sysroot_flags $toolchain_flags {{ldflags}} -Xlinker -rpath -Xlinker @executable_path/Frameworks -o $outfile -Wl,-filelist,$rspfile {{solibs}} {{libs}}" description = "LINK $outfile" rspfile_content = "{{inputs_newline}}" outputs = [