Skip to content

Commit 8c3a393

Browse files
committed
Replace deleted DESTDIR guidance
1 parent 660a75b commit 8c3a393

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ ifeq ($(UNAME_S),Linux)
1414
POST_INSTALL := ldconfig
1515
else ifeq ($(UNAME_S),Darwin)
1616
DESTDIR ?=
17+
# on macOS, there's not really a default location, so require DESTDIR
18+
ifeq ($(DESTDIR),)
19+
$(error On macOS, DESTDIR must be set for installation. Common locations include /usr/local or /opt/homebrew)
20+
endif
1721
LIB_EXTENSION := dylib
1822
STATIC_LIB_EXTENSION := a
1923
INSTALL_LIB_DIR := /lib

0 commit comments

Comments
 (0)