Ticket #41: 0001-Use-build-instead-of-host-to-determine-EXTRA_SRCS-EX.patch

File 0001-Use-build-instead-of-host-to-determine-EXTRA_SRCS-EX.patch, 0.7 kB (added by GeoffreyMainland, 3 years ago)

This patch should fix the configure script.

  • configure.ac

    From 0bccf13b759e9662050421699b350a7ba32a489d Mon Sep 17 00:00:00 2001
    From: Geoffrey Mainland <gmainlan@microsoft.com>
    Date: Wed, 5 Oct 2011 11:05:06 +0100
    Subject: [PATCH] Use $build instead of $host to determine EXTRA_SRCS,
     EXTRA_LIBS, and CALLCONV (fixes #41).
    
    ---
     configure.ac |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/configure.ac b/configure.ac
    index 05e2e26..0ce96dd 100644
    a b  
    145145 
    146146AC_CHECK_FUNCS(gethostent) 
    147147 
    148 case "$host" in 
     148case "$build" in 
    149149*-mingw32) 
    150150        EXTRA_SRCS="cbits/initWinSock.c, cbits/winSockErr.c, cbits/asyncAccept.c" 
    151151        EXTRA_LIBS=ws2_32