From 960534d3d8537e0199f9221c09426524b76d313c Mon Sep 17 00:00:00 2001 From: Andromeda Date: Sun, 30 Jun 2019 04:37:08 -0500 Subject: [PATCH] Add files via upload --- build.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index c22b8cf..cbaf121 100644 --- a/build.sh +++ b/build.sh @@ -2,8 +2,9 @@ usage() { echo "LinPwn build script" - echo "--dev Compile with developer options enabled" - echo "--debug Compile with debug options enabled" + echo "--default Compile with defaut options." + echo "--dev Compile with developer options enabled." + echo "--debug Compile with debug optionstons enabled." } @@ -13,12 +14,15 @@ if [ $# -eq 0 ]; then exit fi -if [ $1 == "--dev" ]; then +if [ $1 == "--default" ]; then + g++ LinPwn.cc -o LinPwn; + echo "Done." +elif [ $1 == "--dev" ]; then g++ -Wall -Wextra LinPwn.cc -o LinPwn; cpplint LinPwn.cc; echo "Done." elif [ $1 == "--debug" ]; then - g++ --no-pie -ggdb -static LinPwn.cc -o LinPwn; + g++ --no-pie -ggdb -static -fPIC LinPwn.cc -o LinPwn; echo "Done." else usage;