Add -ldl to benchmark build rules

Explicitly specifies --no-as-needed to support toolchains that skip
libraries that are not referenced in the object code (or are only
referenced by weak symbols, such as coz.h's dlsym symbol).
This commit is contained in:
Matt Kramer 2020-10-11 18:34:13 -04:00
parent b0852efc55
commit baae91a0d6

View File

@ -1,5 +1,7 @@
include $(ROOT)/common.mk
LIBS += -Wl,--push-state,--no-as-needed -ldl -Wl,--pop-state
RECURSIVE_TARGETS += bench bench_large bench_small
ifeq ($(USE_SYSTEM_COZ),)