fixed libraries linking parameters for windows

This commit is contained in:
MihailRis 2021-09-09 00:11:19 +03:00 committed by GitHub
parent c9b7d7577b
commit 59a9c1afe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ main-build: VOXEL_ENGINE.exe
VOXEL_ENGINE.exe: $(OBJS) $(USER_OBJS) makefile objects.mk $(OPTIONAL_TOOL_DEPS)
@echo 'Building target: $@'
@echo 'Invoking: MinGW C++ Linker'
g++ -o "VOXEL_ENGINE.exe" $(OBJS) $(USER_OBJS) $(LIBS)
g++ -o "VOXEL_ENGINE.exe" $(OBJS) $(USER_OBJS) $(LIBS) -static-libgcc -static-libstdc++
@echo 'Finished building target: $@'
@echo ' '

View File

@ -4,5 +4,5 @@
USER_OBJS :=
LIBS := -lglfw3 -lglew32 -lopengl32 -lspng -lgdi32 -lz
LIBS := -lglfw3 -lglew32 -lopengl32 -lspng -lgdi32 -Wl,-Bstatic -lz