shrub/nix/nixcrpkgs/pkgs/gdb/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

32 lines
474 B
Bash

source $setup
tar -xf $src
cd gdb-$version
for patch in $patches
do
echo applying patch $patch
patch -p1 -i $patch
done
cd ..
mkdir build
cd build
export LDFLAGS="-L$curses/lib"
export CFLAGS="-I$curses/include"
export CXXFLAGS="-I$curses/include"
../gdb-$version/configure \
--prefix=$out \
--host=$host \
--target=$host \
--with-expat=yes --with-libexpat-prefix=$expat \
--enable-tui \
--disable-win32-registry \
--disable-rpath
make
make install