Skip to content

Commit

Permalink
add arm64 build script
Browse files Browse the repository at this point in the history
  • Loading branch information
wong-fi-hung committed Nov 3, 2024
1 parent 2700646 commit 1c09366
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build-linux-arm64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# Default for cortex-a53 optimized builds
clear
export feature="simd+crypto+crc"
export CC=gcc
export CXX=g++
export CFLAGS="-Ofast -fuse-linker-plugin -ftree-loop-if-convert -march=armv8-a+$feature -mcpu=cortex-a53+$feature -mtune=cortex-a53"
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS -I. -I/usr/local/devs/include"
export LDFLAGS="-L/usr/local/devs/lib -static"
export LIBS="-lcurl -lcrypto -lssl"
make clean
make distclean
rm configure
autoreconf -i
./configure --with-crypto --with-curl CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" LIBS="$LIBS" LDFLAGS="$LDFLAGS"
make -j4

0 comments on commit 1c09366

Please sign in to comment.