diff --git a/BUILD.gn b/BUILD.gn index 0ee9022bbaf4b1f8f066052e613a554deb0892df..7a4431f71f35beb53b97871cf8e5467f8290cdea 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -57,6 +57,7 @@ ohos_shared_library("re2") { "util/util.h", ] include_dirs = [ "." ] + version_script = "libre2.map" # cflags = [ "-lpthread" ] # ldflags = [ "-pthread" ] diff --git a/libre2.map b/libre2.map new file mode 100644 index 0000000000000000000000000000000000000000..5287893e2a4ad72f75e319d7d38e4a82bb5a89ac --- /dev/null +++ b/libre2.map @@ -0,0 +1,10 @@ +{ + global: + extern "C++" { + "re2::RE2::~RE2()"; + "re2::RE2::RE2(re2::StringPiece const&, re2::RE2::Options const&)"; + "re2::RE2::FullMatchN(re2::StringPiece const&, re2::RE2 const&, re2::RE2::Arg const* const*, int)"; + }; + local: + *; +};