build/sim: add -Wl,--no-as-needed to LDFLAGS for Ubuntu 16.04 support (thanks kamejoko80)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 20 Jan 2020 11:54:46 +0000 (12:54 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 20 Jan 2020 11:55:38 +0000 (12:55 +0100)
litex/build/sim/core/Makefile

index e34e456e0557423adf5842c5fbf5e422349e938f..c486e7782e2d2837e5255ff9fb8aacdc1000b1dc 100644 (file)
@@ -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"