diff --git a/Makefile b/Makefile index 252ba88..2b6d2e4 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ all: kvm_sectorlisp .PHONY: clean clean: - $(RM) kvm_sectorlisp sectorlisp.bin + $(RM) kvm_sectorlisp sectorlisp.bin kvm_sectorlisp_patched $(MAKE) -C sectorlisp clean kvm_sectorlisp: kvm_sectorlisp.c sectorlisp.bin @@ -20,3 +20,7 @@ sectorlisp.bin: sectorlisp sectorlisp: $(MAKE) -C sectorlisp sectorlisp.bin +# Patches the elf interpreter to general linux from NixOS +kvm_sectorlisp_patched: kvm_sectorlisp + cp kvm_sectorlisp kvm_sectorlisp_patched + patchelf --set-interpreter /usr/lib64/ld-linux-x86-64.so.2 kvm_sectorlisp_patched