Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: use pkg-config to detect libusb on macOS
Some versions of librtlsdr (including the version installed by Homebrew bottle) wrongly declare -lusb-1.0 in its pkg-config file's Libs section. On Apple Silicon Macs, Homebrew installs libusb dylibs in /opt/homebrew/lib, which is not a known path for linkers and causes build failure. Some people reported this linker problem in #166, #181. This should fix it. For the redundant -lusb-1.0 problem, also see: https://gitea.osmocom.org/sdr/rtl-sdr/commit/222517b506278178ab93182d79ccf7eb04d107ce
- Loading branch information