modified: myjupyterlab.sh
[GalaxyCodeBases.git] / etc / Windows / vlmcsd_old_vancepym / make_openbsd
blob55438ba8a0f7f92387a4a2723ad556c8c30fa4e6
1 #!/usr/local/bin/bash
3 export VERBOSE=3
4 export DNS_PARSER=OS
6 rm -f vlmcsd-* vlmcs-* vlmcsdmulti-* *_all.* 2>/dev/null
7 rm -f vlmcsdmulti vlmcsd vlmcs 2>/dev/null
9 MAKEFLAGS="-B -j12"
10 REUSEOBJFLAGS="-j12"
12 CF="-static-libgcc -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
13 CF45="-static-libgcc -pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
14 CFCLANG="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
15 LF="-Wl,-z,norelro"
16 LFCLANG="-Wl,-z,norelro"
18 gmake allmulti CAT=2 $MAKEFLAGS CC=egcc MULTI_NAME=vlmcsdmulti-OpenBSD-x64 PROGRAM_NAME=vlmcsd-OpenBSD-x64 CLIENT_NAME=vlmcs-OpenBSD-x64 CFLAGS="$CF" LDFLAGS="$LF"
20 #gmake allmulti $MAKEFLAGS CAT=2 MULTI_NAME=vlmcsdmulti-OpenBSD-x86 PROGRAM_NAME=vlmcsd-OpenBSD-x86 CLIENT_NAME=vlmcs-OpenBSD-x86 CFLAGS="$CF45 -m32" LDFLAGS="$LF"
22 #gmake $MAKEFLAGS CC=clang PROGRAM_NAME=vlmcsd-OpenBSD-x64-clang CLIENT_NAME=vlmcs-OpenBSD-x64-clang CFLAGS="$CFCLANG" LDFLAGS="$LFCLANG"
24 rm *.o
26 strip -s --strip-unneeded --remove-section=.eh_frame_hdr --remove-section=.eh_frame --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag vlmcs-* vlmcsd-* vlmcsdmulti-*
27 #sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-*
29 cp -f vlmcsd-OpenBSD-x64 /usr/local/sbin/vlmcsd
30 cp -f vlmcs-OpenBSD-x64 /usr/local/bin/vlmcs
32 # Copy everything to distribution server
33 scp -p vlmcsdmulti-* vlmcsd-* vlmcs-* root@ubuntu64:x/binaries/OpenBSD/intel/