urbit/nix/nixcrpkgs/pkgs/curl/builder.sh
benjamin-tlon edd57d380d
Finish cc-release cross-compilation. (#1202)
- Fixes the IPC bug
- Fixes the terminfo bug
- Moves the OSX SDK out of our nixcrpkgs fork.
- Vendor nixcrpkgs instead of having it be a submodule.
2019-04-23 19:50:38 -07:00

16 lines
207 B
Bash

source $setup
tar -xf $src
cd *
export CFLAGS=-fPIC
case $host in
*darwin*) CFLAGS="$CFLAGS -mmacosx-version-min=10.11";;
esac
./configure --prefix=$out --host=$host $configureFlags
make
make install