From 09f0871781d6462279d3ea97db05b0cc4d77d4d2 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sun, 17 Feb 2013 23:39:08 +0100 Subject: 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 --- lib/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Makefile b/lib/Makefile index 0c1ec54..be0e648 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -20,6 +20,7 @@ XCFG = $(or $(findstring -win,$T),-unx) # in order to use gcc, tyoe: make -libtcc1-usegcc=yes arm-libtcc1-usegcc ?= no +CFLAGS:=$(CFLAGS) -fstack-protector ifeq "$($(T)-libtcc1-usegcc)" "yes" XCC = $(CC) XAR = $(AR) -- cgit v1.2.3