diff --git a/Debug_win/makefile b/Debug_win/makefile index 06897fe3..d5069440 100644 --- a/Debug_win/makefile +++ b/Debug_win/makefile @@ -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 ' ' diff --git a/Debug_win/objects.mk b/Debug_win/objects.mk index 9aa5ef77..f500237b 100644 --- a/Debug_win/objects.mk +++ b/Debug_win/objects.mk @@ -4,5 +4,5 @@ USER_OBJS := -LIBS := -lglfw3 -lglew32 -lopengl32 -lspng -lgdi32 -lz +LIBS := -lglfw3 -lglew32 -lopengl32 -lspng -lgdi32 -Wl,-Bstatic -lz