Skip to content

Commit

Permalink
Makefile: do not link with SDL2 when device is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sashimi-yzh committed May 24, 2021
1 parent cf21d65 commit 84c5752
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 @@ -47,11 +47,15 @@ LDFLAGS += $(CFLAGS_BUILD)
NAME = nemu-$(ENGINE)

ifndef CONFIG_SHARE
LDFLAGS += -lSDL2 -lreadline -ldl -pie
LDFLAGS += -lreadline -ldl -pie
else
SHARE = 1
endif

ifdef CONFIG_DEVICE
LDFLAGS += -lSDL2
endif

ifdef CONFIG_FPU_SOFT
SOFTFLOAT = resource/softfloat/build/softfloat.a
ifeq ($(ISA),riscv64)
Expand Down

0 comments on commit 84c5752

Please sign in to comment.