From df4626c26090409f51215de419508f1235b0b49c Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 30 Sep 2011 15:21:12 -0600 Subject: [PATCH] fix Windows cross build --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 651e97625f..14fc99e4d7 100755 --- a/makefile +++ b/makefile @@ -372,7 +372,8 @@ ifeq ($(platform),windows) exe-suffix = .exe lflags = -L$(lib) $(common-lflags) -lws2_32 -mwindows -mconsole - cflags = -I$(inc) $(common-cflags) -DWINVER=0x0500 + cflags = -I$(inc) $(common-cflags) -DWINVER=0x0500 -DTARGET_PLATFORM_WINDOWS + ifeq (,$(filter mingw32 cygwin,$(build-platform))) openjdk-extra-cflags += -I$(src)/openjdk/caseSensitive @@ -384,7 +385,6 @@ ifeq ($(platform),windows) strip = x86_64-w64-mingw32-strip --strip-all else build-system = windows - cflags += -DTARGET_PLATFORM_WINDOWS common-cflags += "-I$(JAVA_HOME)/include/win32" build-cflags = $(common-cflags) -I$(src) -I$(inc) -mthreads openjdk-extra-cflags =