tce-load -i compiletc automake openssl-dev ncurses-dev zlib_base-dev git export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe" export LDFLAGS="-Wl,-O1" export CC="gcc -flto -fuse-linker-plugin -Werror" export CXX="g++ -flto -fuse-linker-plugin -Werror" #dependency: protobuf tce-load -i libtool-dev git clone https://github.com/protocolbuffers/protobuf cd protobuf git submodule update --init --recursive make clean ./autogen.sh --prefix=/usr/local ./configure && make -j32 && sudo make install-strip sudo ldconfig cd .. git clone https://github.com/mobile-shell/mosh cd mosh extension=mosh build_dir=`pwd` rm -rf /tmp/$extension make clean ./autogen.sh --prefix=/usr/local ./configure --without-utempter --enable-static-protobuf --prefix=/usr/local && make -j32 && make DESTDIR=/tmp/$extension install-strip cd /tmp/$extension/usr/local rm -rf share mkdir -p share/doc/$extension cp $build_dir/COPYING share/doc/$extension/. tce-load -i squashfs-tools submitqc cd /tmp mksquashfs $extension $extension.tcz tar -cf $extension.tar $extension.tcz* gzip -f -9 $extension.tar mv $extension.tar.gz $extension.tcz.tgz submitqc --libs $extension.tcz #cp -f $extension.tcz* /etc/sysconfig/tcedir/optional/.