From: Florent Kermarrec Date: Mon, 20 Jan 2020 11:54:46 +0000 (+0100) Subject: build/sim: add -Wl,--no-as-needed to LDFLAGS for Ubuntu 16.04 support (thanks kamejoko80) X-Git-Tag: 24jan2021_ls180~724 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0d95766acc33dcbd870dca343d94da153ac72df;p=litex.git build/sim: add -Wl,--no-as-needed to LDFLAGS for Ubuntu 16.04 support (thanks kamejoko80) --- diff --git a/litex/build/sim/core/Makefile b/litex/build/sim/core/Makefile index e34e456e..c486e778 100644 --- a/litex/build/sim/core/Makefile +++ b/litex/build/sim/core/Makefile @@ -2,7 +2,7 @@ include variables.mak CC = gcc CFLAGS = -Wall -$(OPT_LEVEL) -ggdb $(if $(COVERAGE), -DVM_COVERAGE) -LDFLAGS = -lpthread -ljson-c -lm -lstdc++ -ldl -levent +LDFLAGS = -lpthread -Wl,--no-as-needed -ljson-c -lm -lstdc++ -Wl,--no-as-needed -ldl -levent CC_SRCS ?= "--cc dut.v"