Skip to content

Commit

Permalink
Merge pull request #197 from sdlyyxy/dev
Browse files Browse the repository at this point in the history
Makefile: use pkg-config to detect libusb on macOS
  • Loading branch information
mutability committed Oct 6, 2022
2 parents 9e1eb7b + 02d60c1 commit 6db3a48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ ifeq ($(UNAME), Darwin)
endif
DUMP1090_CPPFLAGS += -DMISSING_NANOSLEEP
COMPAT += compat/clock_nanosleep/clock_nanosleep.o
ifeq ($(PKGCONFIG), yes)
LIBS_SDR += $(shell pkg-config --libs-only-L libusb-1.0)
endif
LIBS_USB += -lusb-1.0
LIBS_CURSES := -lncurses
# cpufeatures reportedly does not work (yet) on darwin arm64
Expand Down

0 comments on commit 6db3a48

Please sign in to comment.