Skip to content

Instantly share code, notes, and snippets.

@ccoupe
Created August 9, 2017 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccoupe/02f7b2508349fcb73152b5eaa7e3236e to your computer and use it in GitHub Desktop.
Save ccoupe/02f7b2508349fcb73152b5eaa7e3236e to your computer and use it in GitHub Desktop.
curl-config
#! /bin/bash
# execute it instead of ./configure
export dest="/home/ccoupe/Projects/shoesdeps/mingw"
export CC=i686-w64-mingw32-gcc
export CFLAGS="-I${dest}/include -I${dest}/lib/libffi-3.2.1/include"
export LDFLAGS="-L${dest}/lib"
./configure \
--build=x86_64-linux-gnu \
--host=i686-w64-mingw32 \
--enable-silent-rules \
--disable-ldap \
--disable-telnet \
--disable-tfp \
--disable-pop3 \
--disable-imap \
--disable-smb \
--disable-smtp \
--disable-gopher \
--disable-manual \
--enable-pthreads \
--disable-unix-sockets \
--with-winssl \
--prefix=${dest}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment