tce-load -i compiletc libasound-dev pulseaudio-dev sdl2-dev

wget https://downloads.sourceforge.net/mpg123/mpg123-1.29.3.tar.bz2

cd mpg123-1.29.3

CC="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --disable-static --with-module-suffix=.so

[flto fails]

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;
find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \;

make [1m 6.49s]
sudo make install

  mpg123 1.29.3

  Install path ............ /usr/local
  CPU Optimization ........ aarch64
  Compiler Optimization ... 2
  Gapless Support ......... enabled
  Debugging ............... disabled
  Extreme debugging ....... disabled
  Seek table size ......... 1000
  FIFO support ............ enabled
  Buffer .................. enabled
  Network (http streams) .. enabled
  Network Sockets ......... Posix
  IPv6 (getaddrinfo) ...... enabled
  File offsets ............ default
  LFS alias symbols ....... enabled (64)
  LFS alias type .......... off_t
  Use yasm (for AVX only) . disabled

  Core libmpg123 features:
  Layer I ................. enabled
  Layer II ................ enabled
  Layer III ............... enabled
  NtoM resampling ......... enabled
  downsampled decoding .... enabled
  Feeder/buffered input ... enabled
  ID3v2 parsing ........... enabled
  String API .............. enabled
  ICY parsing/conversion .. enabled
  Error/warning messages .. enabled
  Win32 Unicode File Open.. unneeded
  Feature Report Function.. enabled
  Output formats (nofpu will disable all but 16 or 8 bit!):
  8 bit integer ........... enabled
  16 bit integer .......... enabled
  32/24 bit integer ....... enabled
  real (32 bit float) ..... enabled
  Equalizer ............... enabled
  Optimization detail:
  Integer conversion ...... quality
  IEEE 754 hackery ........ enabled
  New/old WRITE_SAMPLE .... disabled
  new Huffman scheme ...... enabled
  runtime tables .......... disabled

Note: Disabling core features is not commonly done and some combinations might
      not build/work. If you encounter such a case, help yourself (and provide
      a patch) or just poke the maintainers.

  libsyn123 special cases . enabled

  Modules ................. enabled
  Checked audio modules ... pulse alsa tinyalsa oss coreaudio sndio sun win32 win32_wasapi os2 esd jack portaudio sdl nas arts openal dummy
  Detected audio support .. pulse alsa oss sdl dummy
  Runtime order ........... pulse alsa oss sdl

  CPPFLAGS=' -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_NEON64 -DREAL_IS_FLOAT '
  CFLAGS='-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math  -g -O2'
  PROG_LIBS='-lm '
       (derived from LIBS, only used for end-user binaries and modules)
  LIBDL='-ldl'
  LIBMPG123_LIBS='-lm '
  LIBSYN123_LIBS='-lm'
  LIBOUT123_LIBS='-lm '