Skip to content

Commit 2b7747b

Browse files
committed
[FIX] add homebrew directories for Apple Silicon
1 parent df4c5a5 commit 2b7747b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
UNAME_S := $(shell uname -s)
22

33
# Point BSC at the directory into which you've built beanstalk-client
44
BSC=/usr/local/src/beanstalk-client
@@ -21,7 +21,15 @@ CFLAGS += -DMAXSPLITPARTS=500 -Idevices/ -I. -I/usr/local/include -Wall -Werror
2121
ifdef LOGFILE_SIZE
2222
CFLAGS += -DLOGFILE_SIZE=$(LOGFILE_SIZE)
2323
endif
24+
ifeq ($(UNAME_S),Darwin)
25+
CFLAGS += -I/opt/homebrew/include
26+
endif
27+
2428
LDFLAGS=-L /usr/local/lib -lmosquitto -lm -lcdb
29+
ifeq ($(UNAME_S),Darwin)
30+
LDFLAGS+= -L /opt/homebrew/lib
31+
endif
32+
2533

2634
OBJS= util.o \
2735
json.o \

0 commit comments

Comments
 (0)