Skip to content

Commit

Permalink
Compile to static executable
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlyCst committed Nov 19, 2024
1 parent 894a157 commit 56b22ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spike:
# Unfortunately there is no tag on the Spike repo, so we pick the latest
-git clone --depth 1 https://github.com/riscv-software-src/riscv-isa-sim.git
mkdir build
cd build && ../riscv-isa-sim/configure && make -j `nproc` && cp spike ../
cd build && ../riscv-isa-sim/configure CFLAGS=-static CXXFLAGS="-static -static-libgcc -static-libstdc++" LDFLAGS=-static && make -j `nproc` spike && cp spike ../

clean:
-rm -rf build riscv-isa-sim spike

0 comments on commit 56b22ff

Please sign in to comment.