wingo pushed a commit to branch wip-whippet
in repository guile.

commit 3a1a5e0368291e8d05f1e047de55c2c6d5dcb6e6
Author: Andy Wingo <wi...@igalia.com>
AuthorDate: Wed Oct 25 11:33:24 2023 +0200

    Fix linking against static libgc.a
    
    Thanks to Thorsten Ball.  Fixes #1, #2.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 58091d55e..22df61e4f 100644
--- a/Makefile
+++ b/Makefile
@@ -96,7 +96,7 @@ obj/$(1).$(2).gc.o: src/$(call gc_impl,$(2)) | .deps obj
 obj/$(1).$(2).o: benchmarks/$(1).c | .deps obj
        $$(COMPILE) $(call gc_cflags,$(2)) -include api/$(call gc_attrs,$(2)) 
-c $$<
 bin/$(1).$(2): obj/$(1).$(2).gc.o obj/$(1).$(2).o obj/gc-stack.o 
obj/gc-options.o obj/gc-platform.o obj/$(1).gc-ephemeron.o | bin
-       $$(LINK) $(call gc_libs,$(2)) $$^
+       $$(LINK) $$^ $(call gc_libs,$(2))
 endef
 
 $(foreach BENCHMARK,$(TESTS),\

Reply via email to