fix -fPIE option
This commit is contained in:
parent
fc6506b041
commit
c5775455e7
1 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@ VER="$(perl -e '$_=<>;print m/\((.*?)\)/'<../../CHANGELOG)"
|
|||
|
||||
wrap () {
|
||||
echo "#!/bin/sh -e" > "$2"
|
||||
echo "echo \"$1 added options: $2\" >&2" >> "$2"
|
||||
echo "$1 $3" >> "$2"
|
||||
chmod +x "$2"
|
||||
}
|
||||
|
@ -34,10 +35,10 @@ if [ "$androidversion" = 5 ]; then
|
|||
wrap "$src" "$dest" "-pie"
|
||||
;;
|
||||
*-gcc)
|
||||
wrap "$src" "$dest" "-pie" "-fPIE"
|
||||
wrap "$src" "$dest" "-pie -fPIE"
|
||||
;;
|
||||
*'-g++')
|
||||
wrap "$src" "$dest" "-pie" "-fPIE"
|
||||
wrap "$src" "$dest" "-pie -fPIE"
|
||||
;;
|
||||
*)
|
||||
cp -a "$src" "$dest"
|
||||
|
|
Loading…
Reference in a new issue