Makefile: static libgcc on Linux only

This commit is contained in:
Zack Buhman 2025-12-09 16:50:28 -06:00
parent c52e3994ca
commit 569da67564

View File

@ -20,7 +20,10 @@ CFLAGS += -I$(dir $(GLFW))../include
CXXFLAGS += -fno-exceptions CXXFLAGS += -fno-exceptions
#CFLAGS += -DDEBUG_BUTTONS #CFLAGS += -DDEBUG_BUTTONS
#CFLAGS += -DDEBUG_AXES #CFLAGS += -DDEBUG_AXES
LDFLAGS += -nostdlib++ -lm -static-libgcc LDFLAGS += -nostdlib++ -lm
ifeq ($(shell uname),Linux)
LDFLAGS += -static-libgcc
endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
LDFLAGS += -Wl,--subsystem,windows -mwindows LDFLAGS += -Wl,--subsystem,windows -mwindows
endif endif