urbit/nix/nixcrpkgs/pkgs/openocd/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

25 lines
334 B
Bash

source $setup
cp -r $src openocd
chmod -R u+w openocd
cd openocd
SKIP_SUBMODULE=1 ./bootstrap
cd ..
mkdir build
cd build
PKG_CONFIG=pkg-config-cross ../openocd/configure \
--prefix=$out \
--host=$host \
--disable-dependency-tracking \
--enable-static \
--disable-shared
make
make install
$host-strip $out/bin/openocd