From 519a3846bf4b9cf3592cb7f26ce99ef9091c255e Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 26 May 2014 03:02:46 +0100 Subject: [PATCH] Update makefile --- dgl/Makefile.mk | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dgl/Makefile.mk b/dgl/Makefile.mk index cc943ac9..4eee9ca7 100644 --- a/dgl/Makefile.mk +++ b/dgl/Makefile.mk @@ -22,7 +22,10 @@ endif # Common build and link flags BASE_FLAGS = -Wall -Wextra -pipe -BASE_OPTS = -O2 -ffast-math -mtune=generic -msse -msse2 -mfpmath=sse -fdata-sections -ffunction-sections +BASE_OPTS = -O2 -ffast-math -fdata-sections -ffunction-sections +ifneq ($(NOOPT),true) +BASE_OPTS += -mtune=generic -msse -msse2 -mfpmath=sse +endif LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--strip-all ifeq ($(MACOS),true) @@ -31,8 +34,11 @@ LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip endif ifeq ($(RASPPI),true) -# Raspberry-Pi optimization flags -BASE_OPTS = -O2 -ffast-math -march=armv6 -mfpu=vfp -mfloat-abi=hard +# Raspberry-Pi flags +BASE_OPTS = -O2 -ffast-math +ifneq ($(NOOPT),true) +BASE_OPTS += -march=armv6 -mfpu=vfp -mfloat-abi=hard +endif LINK_OPTS = -Wl,-O1 -Wl,--as-needed -Wl,--strip-all endif