Skip to content

Commit

Permalink
config.mk: Add LIB to LD_LIBRARY_PATH as needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Sep 25, 2024
1 parent 149b0d8 commit 3d40777
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ endif
# Links against pthread and dependencies
LDFLAGS += $(THREADS) -lredisx -lxchange

# Search for libraries under LIB
ifneq($(findstring $(LIB),$(LD_LIBRARY_PATH),$LIB))
LD_LIBRARY_PATH = $(LIB)/lib:$(LD_LIBRARY_PATH)
endif

# Compile and link against a specific redisx library (if defined)
ifdef REDISX
CPPFLAGS += -I$(REDISX)/include
Expand Down

0 comments on commit 3d40777

Please sign in to comment.