Skip to content

Commit

Permalink
Adapt the Makefiles that don't use Makefile.openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
tcresson authored and sobomax committed Nov 9, 2023
1 parent 216909f commit b56acff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
6 changes: 4 additions & 2 deletions modules/cachedb_mongodb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ auto_gen=
NAME=cachedb_mongodb.so

include ../../lib/json/Makefile.json

ifeq ($(CROSS_COMPILE),)
MONGOC_BUILDER = $(shell \
if pkg-config --exists libmongoc-1.0; then \
Expand All @@ -17,8 +16,11 @@ MONGOC_BUILDER = $(shell \
endif

ifeq ($(MONGOC_BUILDER),)

include ../../Makefile.openssl

DEFS += -I$(SYSBASE)/include/libmongoc-1.0 -I$(SYSBASE)/include/libbson-1.0
LIBS += -L$(LOCALBASE)/lib -lssl -lcrypto -lrt -lmongoc-1.0 -lbson-1.0
LIBS += -L$(LOCALBASE)/lib -lrt -lmongoc-1.0 -lbson-1.0
LIBS += -dl -Bsymbolic
else
DEFS += $(shell $(MONGOC_BUILDER) --cflags)
Expand Down
7 changes: 5 additions & 2 deletions modules/cachedb_redis/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ NAME=cachedb_redis.so
HAVE_REDIS_SSL=$(shell if [ -n "`ldconfig -p | grep hiredis_ssl`" ]; \
then echo "HAVE_REDIS_SSL"; fi)
ifeq ($(HAVE_REDIS_SSL), HAVE_REDIS_SSL)
LIBS+=-lhiredis_ssl -lssl -lcrypto
DEFS+= -DHAVE_REDIS_SSL

include ../../Makefile.openssl

LIBS += -lhiredis_ssl
DEFS += -DHAVE_REDIS_SSL
endif

ifeq ($(CROSS_COMPILE),)
Expand Down
22 changes: 4 additions & 18 deletions modules/stir_shaken/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,11 @@
# WARNING: do not run this directly, it should be run by the master Makefile

include ../../Makefile.defs
auto_gen=
NAME=stir_shaken.so

ifeq ($(CROSS_COMPILE),)
SSL_BUILDER=$(shell \
if pkg-config --exists libcrypto; then \
echo 'pkg-config libcrypto'; \
fi)
endif
USE_ONLY_CRYPTO=true
include ../../Makefile.openssl

ifneq ($(SSL_BUILDER),)
DEFS += $(shell $(SSL_BUILDER) --cflags)
LIBS += $(shell $(SSL_BUILDER) --libs)
else
DEFS += -I$(LOCALBASE)/ssl/include \
-I$(LOCALBASE)/include
LIBS += -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \
-L$(LOCALBASE)/lib64 -L$(LOCALBASE)/ssl/lib64 \
-lcrypto
endif
auto_gen=
NAME=stir_shaken.so

include ../../Makefile.modules

0 comments on commit b56acff

Please sign in to comment.