Skip to content

Commit

Permalink
Build object files without stdlib.
Browse files Browse the repository at this point in the history
Doom C still runs, since we link with the stdlib when building the binary.

Doom Rust also runs, since rust also depends on libc and linking combines everything together.
  • Loading branch information
diekmann committed Mar 4, 2021
1 parent 84a850d commit a133155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doom/linuxdoom-1.10/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ $(O)/linuxxdoom: $(OBJS) $(O)/i_main.o

$(O)/%.o: %.c
mkdir -p $(O)
$(CC) $(CFLAGS) -c $< -o $@
$(CC) $(CFLAGS) -nostdlib -c $< -o $@

run: all
Xephyr :1 -screen 640x400x8 -title DooM &
Expand Down

0 comments on commit a133155

Please sign in to comment.