Skip to content

Commit d453535

Browse files
committed
fbc-1.10: contrib/release/build.sh
- update to build libffi 3.4.4 - this is needed to work with newer mingw-w64 based toolchains for gcc 11.x and up
1 parent aa8039a commit d453535

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Version 1.10.1
33
[changed]
44
- rtlib: printf format specifier, use 'll' instead of 'I64' if building for ucrt or mingw-w64's stdio implementation (for newer gcc versions and c std)
55
- gcc backend: use 'char' types for zstring instead of 'uint8' to avoid warnings in newer gcc 11+
6+
- release: update to build libffi 3.4.4 - this is needed to work with newer mingw-w64 based toolchains for gcc 11.x and up
67

78
[added]
89
- release: add recipes for building fbc distros using gcc-11.2 and gcc-12.2 Mingw-w64 project toolchains

contrib/release/build.sh

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -709,12 +709,22 @@ esac
709709

710710
case $fbtarget in
711711
win32|win64)
712-
# libffi sources https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz.
713-
libffi_title=libffi-3.3
712+
# libffi sources:
713+
# - ftp://sourceware.org/pub/libffi/libffi-3.4.3.tar.gz
714+
# - https://github.com/libffi/libffi/releases/download/v3.4.4/libffi-3.4.4.tar.gz
715+
libffi_version=3.4.4
716+
libffi_title=libffi-${libffi_version}
714717
libffi_package="${libffi_title}.tar.gz"
715-
download "$libffi_package" "ftp://sourceware.org/pub/libffi/$libffi_package"
716-
echo "extracting $libffi_package"
717-
tar xf "../input/$libffi_package"
718+
719+
# sourware:
720+
# libffi_dir="ftp://sourceware.org/pub/libffi/"
721+
722+
# github:
723+
libffi_dir="https://github.com/libffi/libffi/releases/download/v${libffi_version}/"
724+
725+
download "$libffi_package" "${libffi_dir}${libffi_package}"
726+
echo "extracting ${libffi_package}"
727+
tar xf "../input/${libffi_package}"
718728
;;
719729
esac
720730

0 commit comments

Comments
 (0)