Skip to content

Commit 44f8e1d

Browse files
committed
fix(extra/language/c): should export LIBRARY_PATH as well
gcc looks for `LIBRARY_PATH` for library search path[^1] [^1]: https://gcc.gnu.org/onlinedocs/gcc-12.5.0/gcc/Environment-Variables.html#:~:text=LIBRARY_PATH
1 parent 7c9e793 commit 44f8e1d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extra/language/c.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ with lib;
5252
name = "LDFLAGS";
5353
eval = "-L$DEVSHELL_DIR/lib";
5454
}
55+
{
56+
name = "LIBRARY_PATH";
57+
eval = "-L$DEVSHELL_DIR/lib";
58+
}
5559
])
5660
++ lib.optionals hasIncludes [
5761
{

0 commit comments

Comments
 (0)