Merge pull request #199274 from wegank/bandwidth-aarch64-darwin

bandwidth: fix build on aarch64-darwin
This commit is contained in:
Ryan Burns 2022-11-03 00:09:49 -07:00 committed by GitHub
commit c6a1d6eece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
sed -i 's,ar ,$(AR) ,g' OOC/Makefile
# Remove unnecessary -m32 for 32-bit targets
sed -i 's,-m32,,g' OOC/Makefile
# Replace arm64 with aarch64
sed -i 's#,arm64#,aarch64#g' Makefile
# Fix wrong comment character
sed -i 's,# 32,; 32,g' routines-x86-32bit.asm
# Fix missing symbol exports for macOS clang