rsyslog/plugins/imdtls/Makefile.am
Andre lorbach 5a97e65f26 NET-OSSL driver: Created interfaces for exported functions
Shared net_ossl_* functions are not available if loaded dynamically
by module in imdtls or omdtls. The incorrect workarround was that I linked
lmnsd_ossl.la into omdtls and imdtls. However that breaks make install when
DTLS modules are enabled.

To fix the problem, all net_ossl_ functions are mapped to the net_ossl
interface which is dynamically loaded on runtime.

This removes the lmnsd_ossl.la dependency from the omdtls and imdtls makefiles
and fixes make install.

it also removes this build warning:
*** Warning: Linking the shared library omdtls.la against the loadable module
*** lmnsd_ossl.so is not portable!

closes: https://github.com/rsyslog/rsyslog/issues/5340
2024-03-08 15:11:45 +01:00

7 lines
253 B
Makefile

pkglib_LTLIBRARIES = imdtls.la
imdtls_la_DEPENDENCIES =
imdtls_la_SOURCES = imdtls.c
imdtls_la_CPPFLAGS = -I$(top_srcdir) $(PTHREADS_CFLAGS) $(RSRT_CFLAGS) $(OPENSSL_CFLAGS)
imdtls_la_LDFLAGS = -module -avoid-version
imdtls_la_LIBADD = $(OPENSSL_LIBS)