-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the same openssl make-foo code that has been copied and
pasted around into a central location and include it from there.
- Loading branch information
Showing
6 changed files
with
32 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# | ||
# WARNING: do not run this directly, it should be included by other Makefiles | ||
|
||
# Needed to build with openssl 3.x | ||
DEFS += -Wno-deprecated-declarations | ||
|
||
ifeq ($(CROSS_COMPILE),) | ||
SSL_BUILDER=$(shell \ | ||
if pkg-config --exists libssl; then \ | ||
echo 'pkg-config libssl'; \ | ||
fi) | ||
endif | ||
|
||
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 \ | ||
-lssl -lcrypto | ||
endif | ||
|
||
# enable this flag to increase performance by not serializing openssl | ||
# connect/accept/read/write operations, at the cost of possible crashes | ||
#DEFS+= -DNO_SSL_GLOBAL_LOCK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters