2022-02-15 05:26:55 -03:00
|
|
|
Build with CMake, using the following options:
|
|
|
|
|
|
|
|
```
|
2025-07-15 10:03:18 -04:00
|
|
|
cmake -B build-x86 -DCMAKE_LIBRARY_PATH=/usr/local/lib -DCMAKE_OSX_ARCHITECTURES="x86_64" \
|
|
|
|
-DCMAKE_OSX_DEPLOYMENT_TARGET="10.13" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=ON
|
|
|
|
cmake -B build-arm -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=ON
|
2022-02-15 05:26:55 -03:00
|
|
|
```
|
|
|
|
|
2025-07-15 10:03:18 -04:00
|
|
|
For the debug overlay, BUILD_TYPE was replaced with `Debug`.
|
2022-02-21 21:43:36 -03:00
|
|
|
|
2025-07-15 10:03:18 -04:00
|
|
|
And some minor tweaks with `install_name_tool -change` to fix up the
|
|
|
|
resulting libFLAC.14.dylib so that it imports libogg.0.dylib using an
|
|
|
|
@rpath path instead of an absolute path to Homebrew's install.
|
2022-02-15 05:26:55 -03:00
|
|
|
|
2025-07-15 10:03:18 -04:00
|
|
|
Version 1.5.0 was used from the official source code download:
|
2022-02-15 05:26:55 -03:00
|
|
|
|
2025-07-15 10:03:18 -04:00
|
|
|
https://downloads.xiph.org/releases/flac/flac-1.5.0.tar.xz
|
2022-02-15 05:26:55 -03:00
|
|
|
|
2022-02-21 21:43:36 -03:00
|
|
|
x86_64 and arm64 were built separately, to allow for intrinsic functions
|
2022-07-13 02:03:07 -04:00
|
|
|
to be used for x86_64.
|