]> git.wh0rd.org Git - elf2flt.git/commitdiff
This patch allows cross-compilation of elf2flt for MinGW hosts when a
authorDavid McCullough <davidm@snapgear.com>
Wed, 1 Feb 2006 22:34:46 +0000 (22:34 +0000)
committerDavid McCullough <davidm@snapgear.com>
Wed, 1 Feb 2006 22:34:46 +0000 (22:34 +0000)
non-MinGW build system is in use. By using uname, there is currently an
assumption in 'Makefile.in' that (build system) == (host system), which
isn't necessarily the case in a Canadian cross environment. (At
CodeSourcery we use Linux for building our MinGW-hosted toolchains, some
of which will soon include elf2flt).

Julian Brown <julian@codesourcery.com>

Makefile.in

index 24dd96d1e72990769ba599414ef8bc0e6c0e1413..6917cf35188735fee42bb79ccf19608dc0c9e8f2 100644 (file)
@@ -20,9 +20,9 @@ DEFS = @DEFS@ -DTARGET_$(CPU)
 EXEEXT = @EXEEXT@
 OBJEXT = @OBJEXT@
 
-UNAME := $(shell uname -s)
+HOST = @host_alias@
 
-ifneq (,$(findstring MINGW,$(UNAME)))
+ifneq (,$(findstring mingw32,$(HOST)))
    LIBS :=  $(LIBS) -lws2_32
 endif