Skip to content

Instantly share code, notes, and snippets.

@masaeedu
Created February 13, 2017 03:31
Show Gist options
  • Save masaeedu/75cfc850e24e55d811ec5240af90f292 to your computer and use it in GitHub Desktop.
Save masaeedu/75cfc850e24e55d811ec5240af90f292 to your computer and use it in GitHub Desktop.
WSL build of libiconv for cross-compilation practice
# Download, extract source tarball
curl -O libiconv.tar.gz http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
tar -xvf libiconv.tar.gz
cd libiconv-1.13.1
# Autoconf build for mingw
./configure --host=x86_64-w64-mingw32
make
mkdir -p /tmp/libiconv-staging
DESTDIR=/tmp/libiconv-staging make install
# If all goes well, your Windows binaries should be in their Unix folder structure under /tmp/libiconv-staging. Tar this up and share with your buds!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment