Add -lm for FreeBSD on ARM/ARM64
@@ -380,6 +380,12 @@ ifeq ($(OSNAME), AIX)
EXTRALIB += -lm
endif
+ifeq ($(OSNAME), FreeBSD)
+ifeq ($(ARCH), $(filter ($ARCH),arm arm64))
+EXTRALIB += -lm
+endif
+endif
+
ifeq ($(OSNAME), WINNT)
NEED_PIC = 0
NO_EXPRECISION = 1
