mirror of
https://github.com/Wind4/vlmcsd.git
synced 2024-11-28 21:11:03 +08:00
31 lines
1.5 KiB
Bash
Executable File
31 lines
1.5 KiB
Bash
Executable File
#!/usr/local/bin/bash
|
|
|
|
export VERBOSE=3
|
|
export DNS_PARSER=OS
|
|
|
|
rm -f vlmcsd-Dragon* vlmcs-* vlmcsdmulti-* *_all.* 2>/dev/null
|
|
rm -f vlmcsdmulti vlmcsd vlmcs 2>/dev/null
|
|
|
|
MAKEFLAGS="-B -j12"
|
|
REUSEOBJFLAGS="-j12"
|
|
|
|
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"
|
|
CF45="-static-libgcc -pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
|
CFCLANG="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
|
LF="-Wl,-z,norelro -Wl,--hash-style=sysv -Wl,--build-id=none"
|
|
LFCLANG="-Wl,-z,norelro -Wl,--hash-style=sysv"
|
|
export CC=gcc5
|
|
|
|
gmake $MAKEFLAGS MULTI_NAME=vlmcsdmulti-DragonFly-x64 PROGRAM_NAME=vlmcsd-DragonFly-x64 CLIENT_NAME=vlmcs-DragonFly-x64 CFLAGS="$CF" LDFLAGS="$LF" allmulti
|
|
|
|
rm *.o
|
|
|
|
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-*
|
|
sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-*
|
|
|
|
cp -af vlmcsd-DragonFly-x64 /usr/local/sbin/vlmcsd
|
|
cp -af vlmcs-DragonFly-x64 /usr/local/bin/vlmcs
|
|
|
|
# Copy everything to distribution server
|
|
scp -p vlmcsdmulti-* vlmcsd-Dragon* vlmcs-* root@ubuntu64:x/binaries/DragonFly/intel/
|