FIX: adding directives to reduce size on systems like Gentoo Hardned (see https://github.com/iceman1001/proxmark3/issues/268)
This commit is contained in:
@@ -122,8 +122,9 @@ APP_CFLAGS += $(ZLIB_CFLAGS)
|
|||||||
# zlib includes:
|
# zlib includes:
|
||||||
APP_CFLAGS += -I../zlib
|
APP_CFLAGS += -I../zlib
|
||||||
|
|
||||||
# stdint.h provided locally until GCC 4.5 becomes C99 compliant
|
# stdint.h provided locally until GCC 4.5 becomes C99 compliant,
|
||||||
APP_CFLAGS += -I.
|
# stack-protect , no-pie reduces size on Gentoo Hardened 8.2 gcc
|
||||||
|
APP_CFLAGS += -I. -fno-stack-protector -fno-pie
|
||||||
|
|
||||||
# Compile these in thumb mode (small size)
|
# Compile these in thumb mode (small size)
|
||||||
THUMBSRC = start.c \
|
THUMBSRC = start.c \
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ VERSIONSRC = version.c
|
|||||||
# stdint.h provided locally until GCC 4.5 becomes C99 compliant
|
# stdint.h provided locally until GCC 4.5 becomes C99 compliant
|
||||||
APP_CFLAGS = -I. -fno-strict-aliasing -ffunction-sections -fdata-sections
|
APP_CFLAGS = -I. -fno-strict-aliasing -ffunction-sections -fdata-sections
|
||||||
|
|
||||||
|
# stack-protect , no-pie reduces size on Gentoo Hardened 8.2 gcc
|
||||||
|
APP_CFLAGS += -fno-stack-protector -fno-pie
|
||||||
|
|
||||||
|
|
||||||
# Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC
|
# Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC
|
||||||
include ../common/Makefile.common
|
include ../common/Makefile.common
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user