|
@@ -162,9 +162,12 @@ endif
|
162
|
162
|
# output of "size". Inhibit this.
|
163
|
163
|
#
|
164
|
164
|
ifeq ($(CCTYPE),gcc)
|
165
|
|
-CFI_TEST = $(CC) -fno-dwarf2-cfi-asm -x c -c /dev/null \
|
|
165
|
+CFI_TEST = $(CC) -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables \
|
|
166
|
+ -fno-asynchronous-unwind-tables -x c -c /dev/null \
|
166
|
167
|
-o /dev/null >/dev/null 2>&1
|
167
|
|
-CFI_FLAGS := $(shell $(CFI_TEST) && $(ECHO) '-fno-dwarf2-cfi-asm')
|
|
168
|
+CFI_FLAGS := $(shell $(CFI_TEST) && \
|
|
169
|
+ $(ECHO) '-fno-dwarf2-cfi-asm -fno-exceptions ' \
|
|
170
|
+ '-fno-unwind-tables -fno-asynchronous-unwind-tables')
|
168
|
171
|
WORKAROUND_CFLAGS += $(CFI_FLAGS)
|
169
|
172
|
endif
|
170
|
173
|
|