Skip to content

Commit

Permalink
Static build option (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Aug 30, 2024
1 parent a905ecd commit 018c646
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ endif
all:
$(CNAME) $(CFLAGS) $(BFLAGS) $(TFILES) $(GFILES) $(MFLAGS) $(UFLAGS) $(UFLAGS64) $(ZFLAGS) -flto -o niimath

#issue30: static build
static:
gcc -O3 -static -std=gnu99 $(BFLAGS) $(TFILES) $(GFILES) $(MFLAGS) $(UFLAGS) $(UFLAGS64) $(ZFLAGS) -flto -o niimath

# tiny: terminal executable to emulate WASM
tiny:
$(CNAME) $(CFLAGS) $(MFLAGS) $(UFLAGS) -o niimath
Expand Down

0 comments on commit 018c646

Please sign in to comment.