fix -fPIE option

This commit is contained in:
Joey Hess 2015-01-07 15:30:50 -04:00
parent fc6506b041
commit c5775455e7

View file

@ -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"