--- Makefile.orig 2018-01-30 22:21:35 UTC +++ Makefile @@ -103,7 +103,7 @@ ifneq ($(cjson-pass)$(system-cjson-pass) JSON2CBOR_SOURCES = tools/json2cbor/json2cbor.c INSTALL_TARGETS += $(bindir)/json2cbor ifeq ($(system-cjson-pass),1) - LDFLAGS_CJSON = -lcjson + LDFLAGS_CJSON = -L$(LOCALBASE)/lib -lcjson else JSON2CBOR_SOURCES += src/cjson/cJSON.c json2cbor_CCFLAGS = -I$(SRCDIR)src/cjson