summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-14 16:43:33 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-14 16:43:33 +0100
commit290b099a39406d110a8f15dc7f23558afb1dab48 (patch)
tree48002b126698bad91dcd77b34d8fd01d96904dcf
parentef50d0a6950b8fc209f90a2c89780657e318f1d7 (diff)
no-rtti no-threadsafe-statics
-rw-r--r--Makefile4
-rw-r--r--src/arch/esp8266/Makefile.inc2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bd20f73..5333e49 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
default: build/system.elf
INCLUDES = -Iinclude -Iinclude/arch/${arch}
-COMMON_FLAGS = -g -Os -Wall -Wextra -fno-rtti -fno-threadsafe-statics
+COMMON_FLAGS = -g -Os -Wall -Wextra
CFLAGS = -std=c99
-CXXFLAGS = -std=c++14
+CXXFLAGS = -std=c++14 -fno-rtti -fno-threadsafe-statics
C_TARGETS =
CXX_TARGETS = src/app/${app}/main.cc src/os/object/cpp_helpers.cc src/os/object/outputstream.cc
diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc
index ed9f05a..1df3e5a 100644
--- a/src/arch/esp8266/Makefile.inc
+++ b/src/arch/esp8266/Makefile.inc
@@ -17,7 +17,7 @@ endif
INCLUDES += -I${SDK_BASE}/include
COMMON_FLAGS += -nostdlib -mlongcalls -D__ets__ -DICACHE_FLASH -DMULTIPASS_ARCH_esp8266
-CXXFLAGS = -std=c++11
+CXXFLAGS = -std=c++11 -fno-rtti -fno-threadsafe-statics
LDFLAGS += -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static
CXX_TARGETS += src/arch/esp8266/arch.cc src/arch/esp8266/driver/gpio.cc