mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
OpenSSL's legacy provider module and engines need to link to
libcrypto.so, as it provides some of the actual implementations of
legacy routines.
This is a little tricky due to build order issues. Introduce a small
hack (LIBCRYPTO_WITHOUT_SUBDIRS) that builds libcrypto.so in its usual
early phase without any OpenSSL provider modules or engines. This is
intended to restore the test suite; a future change should remove the
hack and replace it with a better approach.
PR: 254853, 273528
Discussed with: Folks at EuroBSDCon in Coimbra
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 1a18383a52)
23 lines
401 B
Makefile
23 lines
401 B
Makefile
|
|
SHLIBDIR= ${LIBDIR}/engines-3
|
|
|
|
LCRYPTO_SRC= ${SRCTOP}/crypto/openssl
|
|
|
|
CFLAGS+= -I${LCRYPTO_SRC}/engines
|
|
CFLAGS+= -I${LCRYPTO_SRC}/include
|
|
CFLAGS+= -I${OBJTOP}/secure/lib/libcrypto
|
|
|
|
.include <bsd.endian.mk>
|
|
|
|
.if ${TARGET_ENDIANNESS} == 1234
|
|
CFLAGS+= -DL_ENDIAN
|
|
.elif ${TARGET_ENDIANNESS} == 4321
|
|
CFLAGS+= -DB_ENDIAN
|
|
.endif
|
|
CFLAGS+= -DNDEBUG
|
|
|
|
LIBADD= crypto
|
|
|
|
.PATH: ${LCRYPTO_SRC}/engines
|
|
|
|
WARNS?= 0
|