diff options
| author | Alexander <alex@cogarr.net> | 2020-02-24 13:08:21 -0500 |
|---|---|---|
| committer | Alexander <alex@cogarr.net> | 2020-02-24 13:08:21 -0500 |
| commit | 377ca5d31a35009913a795c8542659e4872d7c35 (patch) | |
| tree | a0bc1ed0e68813b27095c53904cbe48348da72b9 | |
| parent | 0d2de2ba9c616862d7881f089382db772d034f89 (diff) | |
| download | brokengine-377ca5d31a35009913a795c8542659e4872d7c35.tar.gz brokengine-377ca5d31a35009913a795c8542659e4872d7c35.tar.bz2 brokengine-377ca5d31a35009913a795c8542659e4872d7c35.zip | |
Fixed make for windows
Windows builds would break every time there was a windows update,
removing the -shared compile flag seems to fix that.
| -rw-r--r-- | Makefile.shared | 2 | ||||
| -rw-r--r-- | Makefile.win | 4 |
2 files changed, 5 insertions, 1 deletions
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" |
