chemoelectric

Untitled

Mar 24th, 2026
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. --- chez-exe.git/Makefile.ORIG 2026-03-24 10:26:27.580203363 +0000
  2. +++ chez-exe.git/Makefile 2026-03-24 10:43:50.282826090 +0000
  3. @@ -12,7 +12,9 @@
  4. psboot = $(bootpath)/petite.boot
  5. csboot = $(bootpath)/scheme.boot
  6. custom_boot = custom-boot.ss
  7. -kernel = $(libdir)/kernel.o
  8. +kernel = $(libdir)/libkernel.a
  9. +liblz4 = $(libdir)/liblz4.a
  10. +libz = $(libdir)/libz.a
  11. scheme ?= scheme
  12.  
  13. runscheme = "$(scheme)" -b "$(bootpath)/petite.boot" -b "$(bootpath)/scheme.boot"
  14. @@ -21,7 +23,14 @@
  15. $(runscheme) --compile-imported-libraries --program $< --full-chez --chez-lib-dir . $<
  16.  
  17. %.a: embed_target.o setup.o stubs.o %_boot.o $(kernel)
  18. - ar rcs $@ $^
  19. + ar -r -c $@ $(filter %.o,$^)
  20. + mkdir -p tmpdir
  21. + (cd tmpdir && ar -x $(kernel))
  22. + (cd tmpdir && ar -x $(liblz4))
  23. + (cd tmpdir && ar -x $(libz))
  24. + (cd tmpdir && ar -r -c ../$*.a *.o)
  25. + ranlib $@
  26. + rm -R tmpdir
  27.  
  28. stubs.o: stubs.c
  29. $(CC) -c -o $@ $<
  30.  
Advertisement
Add Comment
Please, Sign In to add comment