diff options
Diffstat (limited to 'debian/patches/0002-Disable-stack-protector-in-runtime-library.patch')
-rw-r--r-- | debian/patches/0002-Disable-stack-protector-in-runtime-library.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/0002-Disable-stack-protector-in-runtime-library.patch b/debian/patches/0002-Disable-stack-protector-in-runtime-library.patch new file mode 100644 index 0000000..243bc23 --- /dev/null +++ b/debian/patches/0002-Disable-stack-protector-in-runtime-library.patch @@ -0,0 +1,28 @@ +From f4ab37b20a5b328cd681740fb2eed649d994b8c1 Mon Sep 17 00:00:00 2001 +From: Thomas Preud'homme <robotux@celest.fr> +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-21 +--- + lib/Makefile | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/Makefile b/lib/Makefile +index 0c1ec54d..385ffae4 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:=$(filter-out -fstack-protector%,$(CFLAGS)) + ifeq "$($(T)-libtcc1-usegcc)" "yes" + XCC = $(CC) + XAR = $(AR) |