From 98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 5 Jul 2024 00:02:53 +0300 Subject: fix some small build issues + Compiling for size emits memcpy() calls after they've already been removed by LTO, so add __used attribute to counteract this. Newer versions of GCC seem to prefer `-flto=auto` to just `-flto`, so use that. printf format %d -> %ld --- scripts/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/makefile b/scripts/makefile index 762c5c9..8c0b5a4 100644 --- a/scripts/makefile +++ b/scripts/makefile @@ -1,7 +1,7 @@ # this could be done better RELEASE ?= 0 OPTFLAGS != [ "$(RELEASE)" != "0" ] \ - && echo "-O3 -flto" \ + && echo "-O2 -flto=auto" \ || echo "-O0" DEBUG ?= 1 -- cgit v1.3