From: Reinoud Zandijk Date: Mon, 29 Dec 2014 21:06:09 +0000 (-0800) Subject: Allow Spike to build on NetBSD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65ba70071d11cc19b3dc85c047c5fea6d4d7bc0d;p=riscv-isa-sim.git Allow Spike to build on NetBSD Under NetBSD, dlopen() is in libc so no extra libs are needed. --- diff --git a/spike_main/spike_main.ac b/spike_main/spike_main.ac index f8d63ce..b913c35 100644 --- a/spike_main/spike_main.ac +++ b/spike_main/spike_main.ac @@ -1 +1,3 @@ -AC_CHECK_LIB(dl, dlopen, [], [AC_MSG_ERROR([libdl is required])]) +AC_SEARCH_LIBS([dlopen], [dl dld], [], [ + AC_MSG_ERROR([unable to find the dlopen() function]) +])