summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/vars.mk4
-rw-r--r--package/sqlite/Makefile2
-rw-r--r--toolchain/glibc/Makefile2
3 files changed, 6 insertions, 2 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 054fb588c..fd6ba65ce 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -289,8 +289,8 @@ endif
ifeq ($(ADK_TARGET_ARCH_ARM),y)
ifeq ($(ADK_TARGET_ARCH_ARM_WITH_NEON),y)
-TARGET_CFLAGS+= -funsafe-math-optimizations
-TARGET_CXXFLAGS+= -funsafe-math-optimizations
+TARGET_CFLAGS+= -funsafe-math-optimizations -ffast-math
+TARGET_CXXFLAGS+= -funsafe-math-optimizations -ffast-math
endif
ifeq ($(ADK_TARGET_ARCH_ARM_WITH_THUMB),y)
TARGET_CFLAGS+= -mthumb -Wa,-mimplicit-it=thumb
diff --git a/package/sqlite/Makefile b/package/sqlite/Makefile
index 6cc9ee5f2..d704cc9c3 100644
--- a/package/sqlite/Makefile
+++ b/package/sqlite/Makefile
@@ -29,6 +29,8 @@ include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBSQLITE},${PKGSD_LIBSQLITE},${PKGSC_LIBSQLITE},${PKG_OPTS}))
$(eval $(call PKG_template,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_CFLAGS:= $(filter-out -ffast-math,$(TARGET_CFLAGS))
+
ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
CONFIGURE_ARGS+= --enable-dynamic-extensions=no
endif
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index 75d2e70e9..cecb784c9 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -4,6 +4,8 @@
include $(ADK_TOPDIR)/rules.mk
include ../rules.mk
+TARGET_CFLAGS:= $(filter-out -ffast-math,$(TARGET_CFLAGS))
+
# glibc does not compile with Os
TARGET_CFLAGS:= $(subst Os,O2,$(TARGET_CFLAGS))
ifneq ($(ADK_DEBUG),)