Ensure soname is specified in tflite_jni_binary rule
PiperOrigin-RevId: 256386874
This commit is contained in:
parent
f565864b27
commit
9e4905dd2d
@ -115,10 +115,12 @@ def tflite_jni_binary(
|
|||||||
linkopts = linkopts + select({
|
linkopts = linkopts + select({
|
||||||
"//tensorflow:macos": [
|
"//tensorflow:macos": [
|
||||||
"-Wl,-exported_symbols_list,$(location {})".format(exported_symbols),
|
"-Wl,-exported_symbols_list,$(location {})".format(exported_symbols),
|
||||||
|
"-Wl,-install_name,@rpath/" + name,
|
||||||
],
|
],
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-Wl,--version-script,$(location {})".format(linkscript),
|
"-Wl,--version-script,$(location {})".format(linkscript),
|
||||||
|
"-Wl,-soname," + name,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
native.cc_binary(
|
native.cc_binary(
|
||||||
|
Loading…
Reference in New Issue
Block a user