diff --git a/README.md b/README.md index 9b75808..1db0b4f 100644 --- a/README.md +++ b/README.md @@ -270,4 +270,7 @@ unwinding back-end, and the python script will check for an exact or near-match ## 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. diff --git a/bundled/libdwarf/CMakeLists.txt b/bundled/libdwarf/CMakeLists.txt index 0ae67cb..4cf73cc 100644 --- a/bundled/libdwarf/CMakeLists.txt +++ b/bundled/libdwarf/CMakeLists.txt @@ -426,7 +426,7 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) 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)