From 03968cbfb0eca0a2a37b3d875b5d7e3bd1d02b81 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 22 Jul 2012 04:16:31 +0100 Subject: get sdk to build with mingw toolchain --- sdk/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sdk/Makefile') diff --git a/sdk/Makefile b/sdk/Makefile index aec5284..9551038 100644 --- a/sdk/Makefile +++ b/sdk/Makefile @@ -31,6 +31,7 @@ path__ := $(GCCSDK_INSTALL_CROSSBIN):$(PATH) cc__ := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc) cxx__ := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*g++) ar__ := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*ar) +ranlib__ := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*ranlib) # Flags cflags__ := -I$(GCCSDK_INSTALL_ENV)/include @@ -42,7 +43,7 @@ pkg_config_libdir__ := $(GCCSDK_INSTALL_ENV)/lib/pkgconfig TARGET := $(shell $(cc__) -dumpmachine) # Environment -env := PATH="$(path__)" CC="$(cc__)" CXX="$(cxx__)" AR="$(ar__)" CFLAGS="$(cflags__)" CPPFLAGS="$(cppflags__)" LDFLAGS="$(ldflags__)" PKG_CONFIG_LIBDIR="$(pkg_config_libdir__)" +env := PATH="$(path__)" CC="$(cc__)" CXX="$(cxx__)" AR="$(ar__)" RANLIB="$(ranlib__)" CFLAGS="$(cflags__)" CPPFLAGS="$(cppflags__)" LDFLAGS="$(ldflags__)" PKG_CONFIG_LIBDIR="$(pkg_config_libdir__)" RECIPES := $(CURDIR)/recipes SOURCEDIR := $(CURDIR)/sources @@ -73,6 +74,10 @@ ifeq ($(TARGET),ppc-amigaos) SDK_ITEMS := $(BUILDSTEPS)/libtre.d $(COMMON_SDK_ITEMS) endif +ifeq ($(TARGET),i686-w64-mingw32) + SDK_ITEMS := $(COMMON_SDK_ITEMS) +endif + ifeq ($(SDK_ITEMS),) $(error Unable to compute SDK components for target $(TARGET)) endif -- cgit v1.2.3