aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-05 00:02:53 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-05 00:03:59 +0300
commit98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4 (patch)
treecbdba41381dc6e7a571001928eeb84996020db13 /scripts
parenta6557ed0233e2193cef0ab5b4cea7f1d7f19ad5d (diff)
downloadkmi-98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4.tar.gz
kmi-98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4.zip
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
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makefile2
1 files changed, 1 insertions, 1 deletions
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