diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2013-02-17 23:39:08 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2020-08-14 23:05:10 +0100 |
commit | 782f9a4a8e801b2077f1775a85cc5950bdd6acdf (patch) | |
tree | 1c54847e6c10707db7653ed3fb0711739282dd78 | |
parent | 03caadcb4ece5dbeb807601521bd1591c442db1c (diff) |
Disable stack protector in runtime library
tcc fails to run when compiled by itself and its runtime library was
built with any variant of -fstack-protector. This is why test3 fails
when libtcc1.a is build with -fstack-protector.
Origin: vendor
Forwarded: no
Last-Update: 2018-02-24
-rw-r--r-- | lib/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile index bc57be7..2fad34a 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -24,6 +24,7 @@ arm-libtcc1-usegcc ?= no #x86_64-libtcc1-usegcc=yes #i386-libtcc1-usegcc=yes +CFLAGS:=$(CFLAGS) -fno-stack-protector ifeq "$($(T)-libtcc1-usegcc)" "yes" XCC = $(CC) XAR = $(AR) |