envoyproxy / envoy-openssl

Envoy OpenSSL extensions
Apache License 2.0
47 stars 45 forks source link

Reboot #55

Closed twghu closed 1 year ago

twghu commented 2 years ago

Moved OpenSSL library to an ExternalProject_Add() instead of FetchContent_Declare()

If the system opensslconf.h was a different version of OpenSSL to that of the project then an error would be generated complaining about version mismatch.

pfl commented 2 years ago

cmake .. ; cmake --build . in a fresh tree with an empty build directory runs aground with: ...

But after linking we still get the OS installed openssl: $ ldd libbssl-compat.so linux-vdso.so.1 (0x00007ffd1fdfc000) libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f473efae000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f473edad000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f473eda8000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f473eda3000) /lib64/ld-linux-x86-64.so.2 (0x00007f473f2cd000)

pfl commented 1 year ago

These patches went in as part of #61