Index: test/asan/lit.cfg =================================================================== --- test/asan/lit.cfg +++ test/asan/lit.cfg @@ -48,8 +48,7 @@ # Setup source root. config.test_source_root = os.path.dirname(__file__) -# There is no libdl on FreeBSD. -if config.host_os != 'FreeBSD': +if config.host_os != 'FreeBSD' and config.host_os != 'NetBSD': libdl_flag = "-ldl" else: libdl_flag = ""