Skip to content

Commit f7795ed

Browse files
authored
fix(c): add LDFLAGS automatically (#320)
This env var fixes building `python-ldap` in a pdm python project when `openldap` is added to `language.c.libraries`.
1 parent de5d95d commit f7795ed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

extra/language/c.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ with lib;
4848
name = "LD_LIBRARY_PATH";
4949
prefix = "$DEVSHELL_DIR/lib";
5050
}
51+
{
52+
name = "LDFLAGS";
53+
eval = "-L$DEVSHELL_DIR/lib";
54+
}
5155
])
5256
++ lib.optionals hasIncludes [
5357
{

0 commit comments

Comments
 (0)