-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #5340
- Loading branch information
Showing
7 changed files
with
81 additions
and
72 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
pkglib_LTLIBRARIES = imdtls.la | ||
imdtls_la_DEPENDENCIES = ../../runtime/lmnsd_ossl.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) ../../runtime/lmnsd_ossl.la | ||
imdtls_la_LIBADD = $(OPENSSL_LIBS) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
pkglib_LTLIBRARIES = omdtls.la | ||
omdtls_la_DEPENDENCIES = ../../runtime/lmnsd_ossl.la | ||
omdtls_la_DEPENDENCIES = | ||
omdtls_la_SOURCES = omdtls.c | ||
omdtls_la_CPPFLAGS = -I$(top_srcdir) $(PTHREADS_CFLAGS) $(RSRT_CFLAGS) $(OPENSSL_CFLAGS) | ||
omdtls_la_LDFLAGS = -module -avoid-version | ||
omdtls_la_LIBADD = $(OPENSSL_LIBS) ../../runtime/lmnsd_ossl.la | ||
omdtls_la_LIBADD = $(OPENSSL_LIBS) |
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