ref: e17557706a0ad7653264d3dc4b25a74744f4ab26
parent: a75dd222709c92ae136d835ff2451391d5a88e45
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Tue Mar 15 13:29:07 EDT 2022
Use -flto for all tools
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,7 +1,7 @@
.PHONY: all clean
CC := gcc
-CFLAGS := -O3 -std=c11 -Wall -Wextra -pedantic -Wno-missing-field-initializers
+CFLAGS := -O3 -flto -std=c11 -Wall -Wextra -pedantic -Wno-missing-field-initializers
tools := \
gfx \
--- a/tools/common.h
+++ b/tools/common.h
@@ -5,6 +5,8 @@
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
+#include <stddef.h>
+#include <stdnoreturn.h>
#include <inttypes.h>
#include <string.h>
#include <errno.h>