modified: pixi.toml
[GalaxyCodeBases.git] / etc / Windows / vlmcsd_old_vancepym / make_netbsd
blobbae992e28265ab0a2c4036213a863f9c1eaf3949
1 #!/usr/pkg/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="-flto=12 -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 -Wl,--hash-style=sysv -Wl,--build-id=none"
16 LFCLANG="-Wl,-z,norelro -Wl,--hash-style=sysv"
18 gmake $MAKEFLAGS CC=/usr/pkg/gcc49/bin/gcc PROGRAM_NAME=vlmcsd-NetBSD-x64 CLIENT_NAME=vlmcs-NetBSD-x64 CFLAGS="$CF" LDFLAGS="$LF"
19 rm vlmcsd.o vlmcs.o
20 gmake vlmcsdmulti-NetBSD-x64 $REUSEOBJFLAGS CC=/usr/pkg/gcc49/bin/gcc CFLAGS="$CF" LDFLAGS="$LF" MULTI_NAME=vlmcsdmulti-NetBSD-x64
22 gmake allmulti $MAKEFLAGS CAT=2 MULTI_NAME=vlmcsdmulti-NetBSD-x86 PROGRAM_NAME=vlmcsd-NetBSD-x86 CLIENT_NAME=vlmcs-NetBSD-x86 CFLAGS="$CF45 -m32" LDFLAGS="$LF"
24 #gmake $MAKEFLAGS CC=clang PROGRAM_NAME=vlmcsd-NetBSD-x64-clang CLIENT_NAME=vlmcs-NetBSD-x64-clang CFLAGS="$CFCLANG" LDFLAGS="$LFCLANG"
26 rm *.o
28 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-*
29 #sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-*
31 cp -af vlmcsd-NetBSD-x86 /usr/local/sbin/vlmcsd
32 cp -af vlmcs-NetBSD-x86 /usr/local/bin/vlmcs
34 # Copy everything to distribution server
35 scp -p vlmcsdmulti-* vlmcsd-* vlmcs-* root@ubuntu64:x/binaries/NetBSD/intel/