equal
deleted
inserted
replaced
238 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) |
238 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) |
239 DEBUG_CFLAGS += -gstabs |
239 DEBUG_CFLAGS += -gstabs |
240 endif |
240 endif |
241 |
241 |
242 # Enable bounds checking. |
242 # Enable bounds checking. |
243 # _FORTIFY_SOURCE appears in GCC 4.0+ |
|
244 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) )" "1" |
243 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) )" "1" |
245 # compile time size bounds checks |
244 # stack smashing checks. |
246 FASTDEBUG_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 |
245 DEBUG_CFLAGS += -fstack-protector-all --param ssp-buffer-size=1 |
247 |
246 endif |
248 # and runtime size bounds checks and paranoid stack smashing checks. |
|
249 DEBUG_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all --param ssp-buffer-size=1 |
|
250 endif |
|