Skip to content

Commit

Permalink
Linux build version script to hide exports of dependencies (#984)
Browse files Browse the repository at this point in the history
* Use a version script for Linux builds to hide third party library exports.
  • Loading branch information
Gillibald authored and mattleibow committed Oct 17, 2019
1 parent ff7cc78 commit 4d3883b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cake/BuildExternals.cake
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ Task ("externals-linux")
$"skia_use_system_expat=false skia_use_system_freetype2=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false " +
$"skia_enable_gpu={(SUPPORT_GPU ? "true" : "false")} " +
$"extra_cflags=[ '-DSKIA_C_DLL' ] " +
$"extra_ldflags=[ '-static-libstdc++', '-static-libgcc' ] " +
$"extra_ldflags=[ '-static-libstdc++', '-static-libgcc', '-Wl,--version-script={ROOT_PATH.CombineWithFilePath("native-builds/libSkiaSharp_linux/libSkiaSharp.map")}' ] " +
$"{CUSTOM_COMPILERS} " +
$"linux_soname_version='{soname}'");

Expand Down
7 changes: 7 additions & 0 deletions native-builds/libSkiaSharp_linux/libSkiaSharp.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
libSkiaSharp {
global:
sk_*;
gr_*;
local:
*;
};

0 comments on commit 4d3883b

Please sign in to comment.