From 765b219893416dd0535a7a5326ae7d26ed94ee78 Mon Sep 17 00:00:00 2001 From: Togo Nishigaki Date: Tue, 4 Nov 2014 09:37:00 +0900 Subject: [PATCH] improved config/Makefile.linux-mingw* to support any host easily --- config/Makefile.linux-mingw32 | 5 +++-- config/Makefile.linux-mingw64 | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config/Makefile.linux-mingw32 b/config/Makefile.linux-mingw32 index 510e2a9..fdb2239 100644 --- a/config/Makefile.linux-mingw32 +++ b/config/Makefile.linux-mingw32 @@ -5,8 +5,9 @@ # NAME := glew32 -CC := i586-mingw32msvc-gcc -LD := i586-mingw32msvc-ld +HOST := i586-mingw32msvc +CC := $(HOST)-gcc +LD := $(HOST)-ld LN := STRIP := LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32 diff --git a/config/Makefile.linux-mingw64 b/config/Makefile.linux-mingw64 index 65c1949..0e19f6c 100644 --- a/config/Makefile.linux-mingw64 +++ b/config/Makefile.linux-mingw64 @@ -5,8 +5,9 @@ # NAME := glew32 -CC := i686-w64-mingw32-gcc -LD := i686-w64-mingw32-ld +HOST := i686-w64-mingw32 +CC := $(HOST)-gcc +LD := $(HOST)-ld LN := STRIP := LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32