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 fb5449c commit 34fc7c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Before then the API may undergo slight changes and tweaks. Use the repository as

- [Redis commands](https://redis.io/docs/latest/commands/) (reference documentation)
- [SMA eXchange (SMA-X)](https://docs.google.com/document/d/1eYbWDClKkV7JnJxv4MxuNBNV47dFXuUWu7C4Ve_YTf0/edit?usp=sharing)
-- A structured realtime database built on Redis.
-- A structured realtime database built on Redis / Valkey.
* [Smithsonian/smax-server](https://github.com/Smithsonian/smax-server) -- SMA-X server configuration kit
* [Smithsonian/smax-clib](https://github.com/Smithsonian/smax-clib) -- A C/C++ client library and toolkit to SMA-X,
based on __RedisX__
Expand Down
7 changes: 6 additions & 1 deletion config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,16 @@ endif
# Link against math libs (for e.g. isnan()), and xchange dependency
LDFLAGS += -lm -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 xchange library (if defined)
ifdef XCHANGE
CPPFLAGS += -I$(XCHANGE)/include
LDFLAGS += -L$(XCHANGE)/lib
LD_LIBRARY_PATH = $(XCHANGE)/lib:$(LD_LIBRARY_PATH)
LD_LIBRARY_PATH := $(XCHANGE)/lib:$(LD_LIBRARY_PATH)
endif

# Search for files in the designated locations
Expand Down

0 comments on commit 34fc7c0

Please sign in to comment.