diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2013-02-17 23:39:08 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@debian.org> | 2018-02-28 21:03:17 +0000 |
commit | f7db8f405bd2080dbc84f65c7d4cd4d48fd06ce6 (patch) | |
tree | a1a882566c33cec8548752a5d3cf78c03cce6930 | |
parent | 92fd72f127f13688e6e57c3a7f6f6c0764efc4e1 (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
Gbp-Pq: Name 0002-Disable-stack-protector-in-runtime-library.patch
-rw-r--r-- | lib/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile index 0c1ec54..be25e88 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -20,6 +20,7 @@ XCFG = $(or $(findstring -win,$T),-unx) # in order to use gcc, tyoe: make <target>-libtcc1-usegcc=yes arm-libtcc1-usegcc ?= no +CFLAGS:=$(CFLAGS) -fno-stack-protector ifeq "$($(T)-libtcc1-usegcc)" "yes" XCC = $(CC) XAR = $(AR) |