mirror of https://github.com/Wind4/vlmcsd
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
9 years ago
|
#!/usr/local/bin/bash
|
||
|
|
||
8 years ago
|
export VLMCSD_VERSION="svn`svnversion`"
|
||
|
|
||
8 years ago
|
cd "$( dirname "$0" )"
|
||
|
gmake -C .. clean
|
||
|
|
||
|
cd ../src
|
||
|
BINDIR="../bin"
|
||
|
|
||
9 years ago
|
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"
|
||
9 years ago
|
export CC=gcc5
|
||
9 years ago
|
|
||
8 years ago
|
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
|
||
9 years ago
|
|
||
8 years ago
|
cd $BINDIR
|
||
9 years ago
|
|
||
|
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
|
||
8 years ago
|
scp -p vlmcsdmulti-* vlmcsd-Dragon* vlmcs-* root@ubuntu64:x/binaries/DragonFly/intel/
|