Makefile: static libgcc on Linux only
This commit is contained in:
parent
c52e3994ca
commit
569da67564
5
Makefile
5
Makefile
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user