diff options
author | Mike Stroyan <stroyan@google.com> | 2016-09-27 10:43:13 -0600 |
---|---|---|
committer | Mike Stroyan <stroyan@google.com> | 2016-10-03 16:35:21 -0600 |
commit | 13dac4b2f356843637e2c5e91e8c4d558d3d87ca (patch) | |
tree | 1ecc30b3bfc8bff601069f85eb1fff1f51fa0293 /build-android | |
parent | a2a68605019867ed022600b67ee855637f5c7025 (diff) |
build: make android layers favor their own symbols
Use -Bsymbolic linking android layers so they don't get symbols
like vkCreateDebugReportCallbackEXT from outside the layer.
Diffstat (limited to 'build-android')
-rw-r--r-- | build-android/jni/Android.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build-android/jni/Android.mk b/build-android/jni/Android.mk index d88fe55f..363b80ed 100644 --- a/build-android/jni/Android.mk +++ b/build-android/jni/Android.mk @@ -43,6 +43,7 @@ LOCAL_C_INCLUDES += $(SRC_DIR)/include \ LOCAL_STATIC_LIBRARIES += layer_utils SPIRV-Tools-prebuilt LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR LOCAL_LDLIBS := -llog +LOCAL_LDFLAGS += -Wl,-Bsymbolic include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) @@ -56,6 +57,7 @@ LOCAL_C_INCLUDES += $(SRC_DIR)/include \ LOCAL_STATIC_LIBRARIES += layer_utils LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR LOCAL_LDLIBS := -llog +LOCAL_LDFLAGS += -Wl,-Bsymbolic include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) @@ -69,6 +71,7 @@ LOCAL_C_INCLUDES += $(SRC_DIR)/include \ LOCAL_STATIC_LIBRARIES += layer_utils LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR LOCAL_LDLIBS := -llog +LOCAL_LDFLAGS += -Wl,-Bsymbolic include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) @@ -82,6 +85,7 @@ LOCAL_C_INCLUDES += $(SRC_DIR)/include \ LOCAL_STATIC_LIBRARIES += layer_utils LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR LOCAL_LDLIBS := -llog +LOCAL_LDFLAGS += -Wl,-Bsymbolic include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) @@ -95,6 +99,7 @@ LOCAL_C_INCLUDES += $(SRC_DIR)/include \ LOCAL_STATIC_LIBRARIES += layer_utils LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR LOCAL_LDLIBS := -llog +LOCAL_LDFLAGS += -Wl,-Bsymbolic include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) @@ -109,6 +114,7 @@ LOCAL_C_INCLUDES += $(SRC_DIR)/include \ LOCAL_STATIC_LIBRARIES += layer_utils LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR LOCAL_LDLIBS := -llog +LOCAL_LDFLAGS += -Wl,-Bsymbolic include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) @@ -122,6 +128,7 @@ LOCAL_C_INCLUDES += $(SRC_DIR)/include \ LOCAL_STATIC_LIBRARIES += layer_utils LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR LOCAL_LDLIBS := -llog +LOCAL_LDFLAGS += -Wl,-Bsymbolic include $(BUILD_SHARED_LIBRARY) # Pull in prebuilt shaderc @@ -183,6 +190,7 @@ LOCAL_STATIC_LIBRARIES := googletest_main layer_utils LOCAL_SHARED_LIBRARIES += shaderc-prebuilt glslang-prebuilt OGLCompiler-prebuilt OSDependent-prebuilt HLSL-prebuilt shaderc_util-prebuilt SPIRV-prebuilt SPIRV-Tools-prebuilt LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR --include=$(SRC_DIR)/common/vulkan_wrapper.h LOCAL_LDLIBS := -llog +LOCAL_LDFLAGS += -Wl,-Bsymbolic include $(BUILD_EXECUTABLE) # Note: The following module is similar in name to the executable, but differs so that loader won't enumerate the resulting .so |