From 7952af9b6dc7f042c5cf7491fbbd92771366ca10 Mon Sep 17 00:00:00 2001 From: EWouters <6179932+EWouters@users.noreply.github.com> Date: Fri, 1 Apr 2022 01:49:54 +0200 Subject: [PATCH] Ports/bc: Update bc to version 5.2.3 Also added the recommended CFLAGS. --- Ports/AvailablePorts.md | 2 +- Ports/bc/package.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 87ec9108a8..ddb02fb46e 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -9,7 +9,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`bash`](bash/) | GNU Bash | 5.1.16 | https://www.gnu.org/software/bash/ | | [`awk`](awk/) | The One True Awk | 20220122 | https://github.com/onetrueawk/awk | | [`bass`](bass/) | Beneath a Steel Sky | cd-1.2 | https://www.scummvm.org/games | -| [`bc`](bc/) | bc | 5.1.1 | https://github.com/gavinhoward/bc | +| [`bc`](bc/) | bc | 5.2.3 | https://github.com/gavinhoward/bc | | [`bdwgc`](bdwgc/) | Boehm-Demers-Weiser Garbage Collector (libgc) | 8.0.6 | https://github.com/ivmai/bdwgc | | [`binutils`](binutils/) | GNU Binutils | 2.38 | https://www.gnu.org/software/binutils/ | | [`bison`](bison/) | GNU Bison | 1.25 | https://www.gnu.org/software/bison/ | diff --git a/Ports/bc/package.sh b/Ports/bc/package.sh index 2e9afc34fb..fd58db7b18 100755 --- a/Ports/bc/package.sh +++ b/Ports/bc/package.sh @@ -1,6 +1,6 @@ #!/usr/bin/env -S bash ../.port_include.sh port=bc -version=5.1.1 +version=5.2.3 files="https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz bc-${version}.tar.xz https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz.sig bc-${version}.tar.xz.sig" useconfigure=true @@ -10,6 +10,8 @@ auth_import_key="E2A30324A4465A4D5882692EC08038BDF280D33E" auth_opts=("bc-${version}.tar.xz.sig") configopts=("--prefix=/usr/local" "--disable-nls") +export CFLAGS="-O3 -flto" + configure() { run env HOSTCC=gcc ./"$configscript" "${configopts[@]}" }