equal
deleted
inserted
replaced
363 endif |
363 endif |
364 endif |
364 endif |
365 |
365 |
366 ifeq ($(USE_CLANG),) |
366 ifeq ($(USE_CLANG),) |
367 # Enable bounds checking. |
367 # Enable bounds checking. |
368 # _FORTIFY_SOURCE appears in GCC 4.0+ |
|
369 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) )" "1" |
368 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) )" "1" |
370 # compile time size bounds checks |
369 # stack smashing checks. |
371 FASTDEBUG_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 |
370 DEBUG_CFLAGS += -fstack-protector-all --param ssp-buffer-size=1 |
372 |
371 endif |
373 # and runtime size bounds checks and paranoid stack smashing checks. |
372 endif |
374 DEBUG_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all --param ssp-buffer-size=1 |
373 |
375 endif |
|
376 endif |
|
377 |
374 |
378 # If we are building HEADLESS, pass on to VM |
375 # If we are building HEADLESS, pass on to VM |
379 # so it can set the java.awt.headless property |
376 # so it can set the java.awt.headless property |
380 ifdef HEADLESS |
377 ifdef HEADLESS |
381 CFLAGS += -DHEADLESS |
378 CFLAGS += -DHEADLESS |