From 377ca5d31a35009913a795c8542659e4872d7c35 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 24 Feb 2020 13:08:21 -0500 Subject: Fixed make for windows Windows builds would break every time there was a windows update, removing the -shared compile flag seems to fix that. --- Makefile.shared | 2 +- Makefile.win | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.shared b/Makefile.shared index 05466b5..f2df81f 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -64,7 +64,7 @@ CFLAGS += -Ilib/luajit/src -Ilib/irrlicht/include -Isrc -Ilib/bullet/src -Ilib/t ifeq ($(DEBUG), true) CFLAGS += -g -shared -Wall -Werror -fPIC - LDFLAGS += -shared + LDFLAGS += #-shared #The -shared flags seemes to break the binary whever there's a windows update. else CFLAGS += -static -O3 LDFLAGS += -static diff --git a/Makefile.win b/Makefile.win index cd983cb..059b3f1 100644 --- a/Makefile.win +++ b/Makefile.win @@ -37,6 +37,10 @@ CLIENT_LIBS=\ #-lstdc++ CFLAGS+=-DNNG_STATIC_LIB +ifeq ($(DEBUG), true) +else + LDFLAGS += -mwindows +endif all : $(bins) echo "Done" -- cgit v1.2.3-70-g09d2