diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 362bfd70..3fe3f374 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install dependencies - run: sudo apt-get install libbluetooth-dev libusb-1.0-0-dev + run: | + sudo apt-get update + sudo apt-get install libbluetooth-dev libusb-1.0-0-dev - run: autoreconf --install --force - run: ./configure --prefix=/usr - run: make diff --git a/configure.ac b/configure.ac index 41fa3031..d418a756 100644 --- a/configure.ac +++ b/configure.ac @@ -217,6 +217,11 @@ AS_IF([test "$platform" = "windows"], [ AX_APPEND_COMPILE_FLAGS([-Wno-pedantic-ms-format]) ]) +# macOS specific compiler options. +AS_IF([test "$platform" = "mac"], [ + AX_APPEND_COMPILE_FLAGS([-Wl,-not_for_dyld_shared_cache]) +]) + # Versioning. AC_SUBST([DC_VERSION],[dc_version]) AC_SUBST([DC_VERSION_MAJOR],[dc_version_major])