Skip to content

Commit

Permalink
add non nixos fixed target
Browse files Browse the repository at this point in the history
  • Loading branch information
BolunThompson committed Oct 2, 2024
1 parent 4d7055a commit d7e4270
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit d7e4270

Please sign in to comment.