Skip to content

Commit

Permalink
fix(c): add LDFLAGS automatically
Browse files Browse the repository at this point in the history
This env var fixes building `python-ldap` in a pdm python project when `openldap` is added to `language.c.libraries`.
  • Loading branch information
yajo authored Jun 24, 2024
1 parent 1ebbe68 commit 29d72b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extra/language/c.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ with lib;
name = "LD_LIBRARY_PATH";
prefix = "$DEVSHELL_DIR/lib";
}
{
name = "LDFLAGS";
eval = "-L$DEVSHELL_DIR/lib";
}
])
++ lib.optionals hasIncludes [
{
Expand Down

0 comments on commit 29d72b2

Please sign in to comment.