For mingw32 cross-builds, link msvcrt library for malloc, free, etc

This commit is contained in:
Nigel Stewart 2015-11-19 21:35:29 +10:00
parent da0893b17a
commit 84e6c95850
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ CC := i686-w64-mingw32-gcc
LD := i686-w64-mingw32-ld LD := i686-w64-mingw32-ld
LN := LN :=
STRIP := STRIP :=
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32 LDFLAGS.GL = -lopengl32 -lgdi32 -lmsvcrt -luser32 -lkernel32
WARN = -Wall -W WARN = -Wall -W
POPT = -O2 POPT = -O2
BIN.SUFFIX = .exe BIN.SUFFIX = .exe

View File

@ -10,7 +10,7 @@ CC := $(HOST)-gcc
LD := $(HOST)-ld LD := $(HOST)-ld
LN := LN :=
STRIP := STRIP :=
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32 LDFLAGS.GL = -lopengl32 -lgdi32 -lmsvcrt -luser32 -lkernel32
WARN = -Wall -W WARN = -Wall -W
POPT = -O2 POPT = -O2
BIN.SUFFIX = .exe BIN.SUFFIX = .exe

View File

@ -10,7 +10,7 @@ CC := $(HOST)-gcc
LD := $(HOST)-ld LD := $(HOST)-ld
LN := LN :=
STRIP := STRIP :=
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32 LDFLAGS.GL = -lopengl32 -lgdi32 -lmsvcrt -luser32 -lkernel32
WARN = -Wall -W WARN = -Wall -W
POPT = -O2 POPT = -O2
BIN.SUFFIX = .exe BIN.SUFFIX = .exe