-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·27 lines (23 loc) · 870 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Usage:
# ./build.sh [install_path]
if [ $# -ne 1 ]; then
echo -e "\033[0;32mUsage\033[0m:"
echo -e " ./build.sh [install_path]"
exit
fi
ROOT_DIR=$PWD
mkdir temp
tar xvzf qd-2.3.22.tar.gz
cd temp
mkdir qd-build && cd qd-build
$ROOT_DIR/qd-2.3.22/configure --prefix=$ROOT_DIR/temp/qd CXXFLAGS="-fPIC" CFLAGS="-fPIC" FCFLAGS="-fPIC"
make -j8 && make install
cd $ROOT_DIR
tar xvzf blackhat-0.9.9.tar.gz
cd temp && mkdir blackhat-build && cd blackhat-build
/bin/cp -rf $ROOT_DIR/patch/OptionsHandler.hpp $ROOT_DIR/blackhat-0.9.9/src/Interface
/bin/cp -rf $ROOT_DIR/patch/cut_Darren.h $ROOT_DIR/blackhat-0.9.9/src
/bin/cp -rf $ROOT_DIR/patch/cached_OLHA.cpp $ROOT_DIR/blackhat-0.9.9/src
$ROOT_DIR/blackhat-0.9.9/configure --prefix=$1 --with-QDpath=$ROOT_DIR/temp/qd CXXFLAGS="-std=c++98 -Wno-deprecated -fpermissive"
make -j8 && make install