Merge pull request #1489 from shenki/crc-pie-fix
Do not build software as PIE
This commit is contained in:
commit
2ae445018a
|
@ -54,7 +54,7 @@ INCLUDES = -I$(PICOLIBC_DIRECTORY)/newlib/libc/tinystdio \
|
||||||
-I$(BUILDINC_DIRECTORY) \
|
-I$(BUILDINC_DIRECTORY) \
|
||||||
-I$(BUILDINC_DIRECTORY)/../libc \
|
-I$(BUILDINC_DIRECTORY)/../libc \
|
||||||
-I$(CPU_DIRECTORY)
|
-I$(CPU_DIRECTORY)
|
||||||
COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -fno-stack-protector $(INCLUDES)
|
COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -no-pie -fomit-frame-pointer -Wall -fno-builtin -fno-stack-protector $(INCLUDES)
|
||||||
ifeq ($(LTO), 1)
|
ifeq ($(LTO), 1)
|
||||||
COMMONFLAGS += -flto
|
COMMONFLAGS += -flto
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue