From 6d1a2e82de925e121223e66a0f5721a84577d03b Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 9 Nov 2015 16:11:39 +0100 Subject: [PATCH] Fixed textrel issue for AMRWB --- submodules/externals/build/opencore-amr/Android.mk | 4 ++-- submodules/externals/build/vo-amrwbenc/Android.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/submodules/externals/build/opencore-amr/Android.mk b/submodules/externals/build/opencore-amr/Android.mk index 16aadfba5..461b7834f 100644 --- a/submodules/externals/build/opencore-amr/Android.mk +++ b/submodules/externals/build/opencore-amr/Android.mk @@ -34,7 +34,7 @@ LOCAL_C_INCLUDES += \ $(LOCAL_PATH)/amrnb #in this mode we try to dynamically link against the opencore-amr provided by android -LOCAL_CFLAGS += -include ../build/opencore-amr/stubs.h +LOCAL_CFLAGS += -include ../build/opencore-amr/stubs.h -fPIC endif ifeq ($(BUILD_AMRNB),full) @@ -278,7 +278,7 @@ LOCAL_C_INCLUDES += \ endif #turn off warnings since we cannot fix them -LOCAL_CFLAGS += -w +LOCAL_CFLAGS += -w -fPIC include $(BUILD_STATIC_LIBRARY) diff --git a/submodules/externals/build/vo-amrwbenc/Android.mk b/submodules/externals/build/vo-amrwbenc/Android.mk index 1003b8708..f31de4b2c 100644 --- a/submodules/externals/build/vo-amrwbenc/Android.mk +++ b/submodules/externals/build/vo-amrwbenc/Android.mk @@ -107,7 +107,7 @@ LOCAL_C_INCLUDES += \ $(LOCAL_PATH)/common/include/ #turn off warnings since we cannot fix them -LOCAL_CFLAGS += -w +LOCAL_CFLAGS += -w -fPIC include $(BUILD_STATIC_LIBRARY)