1
0
mirror of https://github.com/Wind4/vlmcsd.git synced 2024-11-28 21:11:03 +08:00
vlmcsd/hotbird64-mass-build/make_dragonfly

37 lines
1.5 KiB
Plaintext
Raw Normal View History

2015-11-29 17:30:52 +08:00
#!/usr/local/bin/bash
2016-11-16 12:12:36 +08:00
export VLMCSD_VERSION=$(git describe)
2016-08-15 18:35:59 +08:00
2016-10-14 13:28:23 +08:00
cd "$( dirname "$0" )"
gmake -C .. clean
cd ../src
BINDIR="../bin"
2015-11-29 17:30:52 +08:00
export VERBOSE=3
export DNS_PARSER=OS
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"
2016-10-24 21:32:24 +08:00
export CC=gcc6
2015-11-29 17:30:52 +08:00
2016-10-14 13:28:23 +08:00
gmake $MAKEFLAGS MULTI_NAME=$BINDIR/vlmcsdmulti-DragonFly-x64 PROGRAM_NAME=$BINDIR/vlmcsd-DragonFly-x64 CLIENT_NAME=$BINDIR/vlmcs-DragonFly-x64 CFLAGS="$CF" LDFLAGS="$LF" allmulti
2015-11-29 17:30:52 +08:00
2016-10-14 13:28:23 +08:00
cd $BINDIR
2015-11-29 17:30:52 +08:00
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-*
2016-12-02 15:56:18 +08:00
cp -af ../etc/vlmcsd.kmd /usr/local/sbin
2015-11-29 17:30:52 +08:00
cp -af vlmcsd-DragonFly-x64 /usr/local/sbin/vlmcsd
cp -af vlmcs-DragonFly-x64 /usr/local/bin/vlmcs
# Copy everything to distribution server
2016-06-28 13:07:01 +08:00
scp -p vlmcsdmulti-* vlmcsd-Dragon* vlmcs-* root@ubuntu64:x/binaries/DragonFly/intel/