fix(c): add LDFLAGS automatically

This env var fixes building `python-ldap` in a pdm python project when `openldap` is added to `language.c.libraries`.
This commit is contained in:
Jairo Llopis 2024-06-24 11:15:18 +01:00 committed by GitHub
parent 1ebbe68d57
commit 29d72b2a02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,10 @@ with lib;
name = "LD_LIBRARY_PATH";
prefix = "$DEVSHELL_DIR/lib";
}
{
name = "LDFLAGS";
eval = "-L$DEVSHELL_DIR/lib";
}
])
++ lib.optionals hasIncludes [
{