From b8182c639888872d66daf0255cc988ed37b21818 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Tue, 17 Jan 2017 10:24:20 +0100 Subject: [PATCH] Changed flasg for compiling. --- src/Makefile | 10 +++++----- src/dexed.mk | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Makefile b/src/Makefile index 80e5feb..f699f5f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -19,6 +19,7 @@ machine = $(shell sh -c 'uname -m 2>/dev/null || echo unknown') ifneq (,$(findstring x86,$(machine))) CPU = FPU = + CXXFLAGS += -ffast-math -fprefetch-loop-arrays -funroll-loops -funsafe-loop-optimizations endif # Raspberry Pi B+, Zero, etc @@ -46,14 +47,13 @@ ifneq (,$(findstring aarch64,$(machine))) PLATFORM += -mabi=lp64 -mcmodel=tiny endif +# MOD-Duo ifeq ($(MOD),1) - CPU = -O3 -mcpu=cortex-a7 - PLATFORM += -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -mvectorize-with-neon-quad + CPU = -O3 -mtune=cortex-a7 + PLATFORM += -mfpu=neon-vfpv4 -mfloat-abi=hard -mvectorize-with-neon-quad endif -ifneq ($(findstring arm,$(ARCH)),) - CXXFLAGS += -endif +CXXFLAGS += $(CPU) $(PLATFORM) ifeq ($(DEBUG), 1) ifeq ($(FILETRACE), 1) diff --git a/src/dexed.mk b/src/dexed.mk index f307a5f..0561d6c 100644 --- a/src/dexed.mk +++ b/src/dexed.mk @@ -5,12 +5,12 @@ ###################################### DEXED_DEPENDENCIES = lvtk -DEXED_VERSION = ca1c9887828a6215ea58b397171d05484a4be513 +DEXED_VERSION = b579f7b8c94b85cbabcd3cb2e532a7908720a218 DEXED_BUNDLES = dexed.lv2 DEXED_SITE = $(call github,dcoredump,dexed,$(DEXED_VERSION)) define DEXED_BUILD_CMDS - (cd $(@D)/src && $(TARGET_MAKE_ENV) make -j $(PARALLEL_JOBS)) + (cd $(@D)/src && $(TARGET_MAKE_ENV) make MOD=1 -j $(PARALLEL_JOBS)) endef define DEXED_INSTALL_TARGET_CMDS