mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-01 05:07:03 +08:00
FIX: adding directives to reduce size on systems like Gentoo Hardned (see https://github.com/iceman1001/proxmark3/issues/268)
This commit is contained in:
parent
411fad13de
commit
38853b111f
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue