Skip to content

Commit 34dd07e

Browse files
committed
[third_party/rl_api] Add symbol export list for MacOS/Mach-O
1 parent 34b4e92 commit 34dd07e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

third_party/rl_api/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ cc_binary(
4242
"@platforms//os:freebsd": ["-Wl,--version-script=$(location :env_c_api_example.lds)"],
4343
"@platforms//os:netbsd": ["-Wl,--version-script=$(location :env_c_api_example.lds)"],
4444
"@platforms//os:openbsd": ["-Wl,--version-script=$(location :env_c_api_example.lds)"],
45+
"@platforms//os:macos": ["-Wl,-exported_symbols_list,$(location :env_c_api_example.syms.lds)"],
4546
"//conditions:default": [],
4647
}),
4748
linkshared = 1,
@@ -50,6 +51,7 @@ cc_binary(
5051
":env_c_api",
5152
":env_c_api_bind",
5253
":env_c_api_example.lds",
54+
":env_c_api_example.syms.lds",
5355
],
5456
)
5557

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_env_c_api_example_connect

0 commit comments

Comments
 (0)