From d8fe6f7ac54f155fe5a3c33509249a70d0c816c5 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 29 Jul 2022 10:50:41 -0400 Subject: Implement Guile linking for C builds In order to write Guile code against C, I need to distiguish between libs and bins, so I did that, then I got the flags that gcc needs from `guile-config` and put them in the args for any C lib build. I tested this with Bessel.c and Bessel.scm (not in this patch, because I don't really want that code in my tree, I'll come up with another way to test it later). --- Biz/Ide/repl | 1 + 1 file changed, 1 insertion(+) (limited to 'Biz/Ide') diff --git a/Biz/Ide/repl b/Biz/Ide/repl index 4c77e5b..a8fc124 100755 --- a/Biz/Ide/repl +++ b/Biz/Ide/repl @@ -32,6 +32,7 @@ fi BILD="(import $BIZ_ROOT/Biz/Bild.nix {})" for lib in ${sysdeps[@]}; do flags+=(--packages "$BILD.private.nixpkgs.${lib}") + flags+=(--packages "$BILD.private.nixpkgs.pkg-config") done case $exts in C) -- cgit v1.2.3