From be6f473007f264049b2be9c60774e24adfb91d9a Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Fri, 1 Sep 2023 17:43:51 -0400 Subject: [PATCH] Update to static link libdwarf and also add a note to the readme about licensing of the compiled binary --- README.md | 5 ++++- bundled/libdwarf/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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)