diff --git a/.bazelrc b/.bazelrc index d4d7ad618679d4..2988831d2ddb76 100644 --- a/.bazelrc +++ b/.bazelrc @@ -9,6 +9,12 @@ build:android_arm --fat_apk_cpu=armeabi-v7a build:android_arm64 --config=android build:android_arm64 --cpu=arm64-v8a build:android_arm64 --fat_apk_cpu=arm64-v8a +build:android_x86 --config=android +build:android_x86 --cpu=x86 +build:android_x86 --fat_apk_cpu=x86 +build:android_x86_64 --config=android +build:android_x86_64 --cpu=x86_64 +build:android_x86_64 --fat_apk_cpu=x86_64 # Sets the default Apple platform to macOS. build --apple_platform_type=macos diff --git a/tensorflow/lite/delegates/gpu/BUILD b/tensorflow/lite/delegates/gpu/BUILD index 33f5a86c42281c..c65b0e5c454100 100644 --- a/tensorflow/lite/delegates/gpu/BUILD +++ b/tensorflow/lite/delegates/gpu/BUILD @@ -88,7 +88,9 @@ objc_library( # build -c opt --config android_arm64 --copt -Os --copt -DTFLITE_GPU_BINARY_RELEASE --copt -fvisibility=hidden --linkopt -s --strip always :libtensorflowlite_gpu_gl.so cc_binary( name = "libtensorflowlite_gpu_gl.so", - linkopts = select({ + linkopts = [ + "-Wl,-soname=libtensorflowlite_gpu_gl.so", + ] + select({ "//tensorflow:android": [ "-lEGL", "-lGLESv3",