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)