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 () {
|
wrap () {
|
||||||
echo "#!/bin/sh -e" > "$2"
|
echo "#!/bin/sh -e" > "$2"
|
||||||
|
echo "echo \"$1 added options: $2\" >&2" >> "$2"
|
||||||
echo "$1 $3" >> "$2"
|
echo "$1 $3" >> "$2"
|
||||||
chmod +x "$2"
|
chmod +x "$2"
|
||||||
}
|
}
|
||||||
|
@ -34,10 +35,10 @@ if [ "$androidversion" = 5 ]; then
|
||||||
wrap "$src" "$dest" "-pie"
|
wrap "$src" "$dest" "-pie"
|
||||||
;;
|
;;
|
||||||
*-gcc)
|
*-gcc)
|
||||||
wrap "$src" "$dest" "-pie" "-fPIE"
|
wrap "$src" "$dest" "-pie -fPIE"
|
||||||
;;
|
;;
|
||||||
*'-g++')
|
*'-g++')
|
||||||
wrap "$src" "$dest" "-pie" "-fPIE"
|
wrap "$src" "$dest" "-pie -fPIE"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
cp -a "$src" "$dest"
|
cp -a "$src" "$dest"
|
||||||
|
|
Loading…
Reference in a new issue