diff options
author | Andrew Waterman <andrew@sifive.com> | 2020-09-22 03:18:23 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2020-09-22 03:48:14 -0700 |
commit | b1dc3826d0254b5d4853037cd399560b39745983 (patch) | |
tree | bf982fb84603bf5412e94f5e86e3d5b03e47653c /riscv | |
parent | ac46e18f82fd2c040680633e089860998baa5a5d (diff) | |
download | spike-b1dc3826d0254b5d4853037cd399560b39745983.zip spike-b1dc3826d0254b5d4853037cd399560b39745983.tar.gz spike-b1dc3826d0254b5d4853037cd399560b39745983.tar.bz2 |
Don't error out if dlopen isn't available
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/riscv.ac | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/riscv/riscv.ac b/riscv/riscv.ac index 3bf3ec2..624e981 100644 --- a/riscv/riscv.ac +++ b/riscv/riscv.ac @@ -19,9 +19,7 @@ AC_ARG_WITH(varch, AC_DEFINE_UNQUOTED([DEFAULT_VARCH], ["vlen:128,elen:64,slen:128"], [Default value for --varch switch])) -AC_SEARCH_LIBS([dlopen], [dl dld], [], [ - AC_MSG_ERROR([unable to find the dlopen() function]) -]) +AC_SEARCH_LIBS([dlopen], [dl dld], AC_DEFINE([HAVE_DLOPEN], [], [Dynamic library loading is supported])) AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR([libpthread is required])]) |