commit 2041d1eff295913a0507658ec0f3ecba3b431275 parent deb9eed1f7d7442e71a6b1b72eeeb2412ffe7371 Author: bsandro <email@bsandro.tech> Date: Mon, 20 Oct 2025 23:49:43 +0300 fix makefile Diffstat:
| M | Makefile | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,6 +1,7 @@ .SUFFIXES: MAKEFLAGS += -rR - +CFLAGS=-std=gnu23 -Wpedantic -Os -s -fomit-frame-pointer -ffast-math -fno-stack-protector -march=native -fwrapv -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-unwind-tables -fmerge-all-constants -fno-ident +LDFLAGS=-lm -lGL -lGLU -lX11 -Wl,--gc-sections CC=cc .PHONY: clean @@ -13,7 +14,7 @@ CC=cc @: %.bin: %.c - ${CC} $< -std=gnu23 -Wpedantic -Os -s -fomit-frame-pointer -ffast-math -fno-stack-protector -march=native -fwrapv -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-unwind-tables -fmerge-all-constants -fno-ident -lm -lGL -lGLU -lX11 -Wl,--gc-sections -o $@ + ${CC} $< $(CFLAGS) $(LDFLAGS) -o $@ strip -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag $@ upx -9 $@