make_minix 1.1 KB

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. cd ~/vlmcsd/hotbird64-mass-build
  3. export VLMCSD_VERSION=svn$(ssh root@ubuntu64.internal "cd x; svnversion")
  4. scp -p make_minix root@ubuntu64.internal:x/hotbird64-mass-build
  5. scp -pr root@ubuntu64.internal:x/* ..
  6. BINDIR="bin"
  7. cd ..
  8. # Compile vlmcsd binaries for Minix 3
  9. SUFFIX=-minix-$(uname -r)-x86
  10. export CC=clang
  11. export CFLAGS="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
  12. export LDFLAGS="-Wl,--hash-style=sysv -Wl,-z,norelro -Wl,--build-id=none"
  13. export PROGRAM_NAME=$BINDIR/vlmcsd$SUFFIX
  14. export CLIENT_NAME=$BINDIR/vlmcs$SUFFIX
  15. export MULTI_NAME=$BINDIR/vlmcsdmulti$SUFFIX
  16. gmake clean
  17. gmake -B allmulti
  18. #strip -s --strip-unneeded --remove-section .eh_frame_hdr --remove-section .eh_frame --remove-section .ident --remove-section .note.minix.ident --remove-section .note.netbsd.pax --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag $BINDIR/*$SUFFIX
  19. scp -p $BINDIR/* root@ubuntu64.internal:x/binaries/Minix/intel/