Skip to content

Add LLDB_LIB_PATH for overriding --libdir#23

Merged
waywardmonkeys merged 1 commit intoendoli:mainfrom
siggsy:lldb-link-fix
Jun 14, 2025
Merged

Add LLDB_LIB_PATH for overriding --libdir#23
waywardmonkeys merged 1 commit intoendoli:mainfrom
siggsy:lldb-link-fix

Conversation

@siggsy
Copy link
Contributor

@siggsy siggsy commented Jun 14, 2025

Fixes #22.

Some systems are not FHS compliant and therefore do not store liblldb.so in llvm-config's libdir folder. They are not FHS compliant for a reason: they have their unique way of providing packages and libraries to avoid conflicts and to allow fully producible environments (eg: NixOS, guix).

This PR helps theses systems to override the search path for the library.

NixOS users can now have the following devshell/derivation environment when using this package in their projects:

pkgs.mkShell {
   packages = [ ... ];
   shellHook = "... ";
   LLDB_LIB_PATH = "${pkgs.lldb}/lib";
}

Some systems are note FHS compliant and therefore do not store
liblldb.so in llvm-config's libdir folder. This commit allows users to
override the libdir path when searching for the library.
@waywardmonkeys
Copy link
Contributor

Thanks for looking into this. We ought to document this stuff in the readme… but that can be done separately.

@waywardmonkeys waywardmonkeys merged commit dc2fffe into endoli:main Jun 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NixOS support

2 participants