From 35204225e823cce15f37c64cf5725aa21d6b0f59 Mon Sep 17 00:00:00 2001 From: Vadzim Dambrouski Date: Sun, 27 Jun 2021 17:34:23 +0300 Subject: [PATCH] Fix compile error when FST traces are enabled on macOS. Compile options should be the same for all platforms. --- litex/build/sim/core/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/build/sim/core/Makefile b/litex/build/sim/core/Makefile index f14398248..b39d14dfd 100644 --- a/litex/build/sim/core/Makefile +++ b/litex/build/sim/core/Makefile @@ -7,10 +7,11 @@ ifeq ($(UNAME_S),Darwin) LDFLAGS += -lpthread -ljson-c -lm -lstdc++ -ldl -levent else CC ?= gcc - CFLAGS += -Wall -$(OPT_LEVEL) -ggdb $(if $(COVERAGE), -DVM_COVERAGE) $(if $(TRACE_FST), -DTRACE_FST) + CFLAGS += -ggdb LDFLAGS += -lpthread -Wl,--no-as-needed -ljson-c -lm -lstdc++ -Wl,--no-as-needed -ldl -levent endif +CFLAGS += -Wall -$(OPT_LEVEL) $(if $(COVERAGE), -DVM_COVERAGE) $(if $(TRACE_FST), -DTRACE_FST) CC_SRCS ?= "--cc sim.v"