commit 9245d45108cba89cdda7842748606f2f0999bbbf parent 68e88ce68cd524f409cb6ce52d5de32779761ba3 Author: sin <sin@2f30.org> Date: Sat, 8 Mar 2014 17:42:51 +0000 Fix sinit build Diffstat:
M | pkgs/sinit | | | 18 | ++---------------- |
1 file changed, 2 insertions(+), 16 deletions(-)
diff --git a/pkgs/sinit b/pkgs/sinit @@ -4,21 +4,7 @@ build: crossmusl set -x cd src/sinit cp config.def.h config.h - for f in util/*.c; do - $CC -c $f -o "${f%%.c}.o" $CFLAGS - done - for f in util/*.o; do - ar -r -c util.a $f - done - ranlib util.a - for f in *.c; do - $CC -c $f $CFLAGS - done - for f in *.o; do - $CC -o "${f%.*}" $f util.a $LDFLAGS - done - for f in *.o; do - cp "${f%.*}" "$root/bin" - done + $CC -o sinit sinit.c $CFLAGS $LDFLAGS + cp sinit "$root/bin" cd "$root/bin" ln -sf sinit init