Don't use @rpath. https://github.com/P-H-C/phc-winner-argon2/pull/309 --- Makefile.orig 2019-05-20 04:18:00.000000000 -0500 +++ Makefile 2020-12-03 14:31:31.000000000 -0600 @@ -83,7 +83,7 @@ endif ifeq ($(KERNEL_NAME), Darwin) LIB_EXT := $(ABI_VERSION).dylib - LIB_CFLAGS := -dynamiclib -install_name @rpath/lib$(LIB_NAME).$(LIB_EXT) + LIB_CFLAGS = -dynamiclib -install_name $(PREFIX)/$(LIBRARY_REL)/lib$(LIB_NAME).$(LIB_EXT) LINKED_LIB_EXT := dylib PC_EXTRA_LIBS ?= endif