Update to static link libdwarf and also add a note to the readme about licensing of the compiled binary

This commit is contained in:
Jeremy 2023-09-01 17:43:51 -04:00
parent b4d8fda9e2
commit be6f473007
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4
2 changed files with 5 additions and 2 deletions

View File

@ -270,4 +270,7 @@ unwinding back-end, and the python script will check for an exact or near-match
## License ## License
The library is under the MIT license. This library is under the MIT license.
Libdwarf is bundled as part of this library so the code in `bundled/libdwarf` is LGPL. If this library is statically
linked with libdwarf then the library's binary will itself be LGPL.

View File

@ -426,7 +426,7 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
include(GNUInstallDirs) include(GNUInstallDirs)
add_library(dwarf SHARED ${libdwarf_sources} ${libdwarf_headers}) add_library(dwarf STATIC ${libdwarf_sources} ${libdwarf_headers})
target_compile_definitions(dwarf PUBLIC LIBDWARF_BUILD) target_compile_definitions(dwarf PUBLIC LIBDWARF_BUILD)