botan: fixup empty -mfloat-abi= CFLAGS

This commit is contained in:
Jürgen Buchmüller 2018-01-14 13:16:31 +01:00
parent 9d32291cc5
commit f11dd09830

View file

@ -47,23 +47,27 @@ do_configure() {
_cpu="armv5" _cpu="armv5"
_arch="armv5te" _arch="armv5te"
_march="armv5te" _march="armv5te"
_float="soft"
_args+=" --disable-modules=simd" _args+=" --disable-modules=simd"
;; ;;
armv6*) armv6*)
_cpu="armv6" _cpu="armv6"
_arch="armv6" _arch="armv6"
_march="armv6" _march="armv6"
_float="hard"
_args+=" --disable-modules=simd" _args+=" --disable-modules=simd"
;; ;;
armv7*) armv7*)
_cpu="armv7-a" _cpu="armv7-a"
_arch="armv7" _arch="armv7"
_march="armv7-a" _march="armv7-a"
_float="hard"
_args+=" --disable-modules=simd" _args+=" --disable-modules=simd"
;; ;;
aarch64*) aarch64*)
_cpu="armv8-a" _cpu="armv8-a"
_arch="arm64" _arch="arm64"
_float="hard"
_march="armv8-a" _march="armv8-a"
;; ;;
mipselhf*) mipselhf*)
@ -71,18 +75,21 @@ do_configure() {
_arch="mips" _arch="mips"
_march="mips32" _march="mips32"
_mtune="mips32r2 --hard-float" _mtune="mips32r2 --hard-float"
_float="hard"
;; ;;
mipshf*) mipshf*)
_cpu="mips32" _cpu="mips32"
_arch="mips" _arch="mips"
_march="mips32" _march="mips32"
_mtune="mips32r2 --hard-float" _mtune="mips32r2 --hard-float"
_float="hard"
;; ;;
mips*) mips*)
_cpu="mips32" _cpu="mips32"
_arch="mips" _arch="mips"
_march="mips32" _march="mips32"
_mtune="mips32r2 --soft-float" _mtune="mips32r2 --soft-float"
_float="soft"
;; ;;
esac esac
@ -107,7 +114,8 @@ do_configure() {
sed -i Makefile \ sed -i Makefile \
-e"s;-std= ;-std=c++11 ;" \ -e"s;-std= ;-std=c++11 ;" \
-e"s;-march= ;-march=${_march} ;" \ -e"s;-march= ;-march=${_march} ;" \
-e"s;-mtune= ;-mtune=${_tune} ;" -e"s;-mtune= ;-mtune=${_tune} ;" \
-e"s;-mfloat-abi= ;-mfloat-abi=${_float} ;"
} }
post_install() { post_install() {
vlicense license.txt vlicense license.txt