Skip to content

Commit

Permalink
added libstdbuf.so (x86) build script
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisMitchell committed Jan 27, 2018
1 parent bb81766 commit 7e7a24d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions misc/libstdbuf-x86
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

err=0
trap 'err=1' ERR

build=$(mktemp -d libstdbuf.so.XXXXXXXX)
git clone --depth=1 --recursive https://github.com/coreutils/coreutils $build
cd $build
./bootstrap --gnulib-srcdir=gnulib --no-git --skip-po
./configure --build=x86_64 --host=x86
make
rm src/src_libstdbuf_so-libstdbuf.o src/libstdbuf.so
make src/libstdbuf.so CFLAGS=-m32
mv -f src/libstdbuf.so ..
cd ..
rm -r $build

exit "$err"

0 comments on commit 7e7a24d

Please sign in to comment.