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
1 changed files with 9 additions and 1 deletions

View File

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