diff --git a/Makefile.system b/Makefile.system index 29d3efd53b..bb55dd6936 100644 --- a/Makefile.system +++ b/Makefile.system @@ -493,6 +493,14 @@ else CCOMMON_OPT += -mfloat-abi=hard FCOMMON_OPT += -mfloat-abi=hard endif + +ifeq ($(OSNAME), Android) +ifeq ($(ARM_SOFTFP_ABI), 1) +EXTRALIB += -lm +else +EXTRALIB += -Wl,-lm_hard +endif +endif endif ifeq ($(ARCH), arm64)