diff --git a/configure.ac b/configure.ac index 38ff6e18daf1..b12a41586a42 100644 --- a/configure.ac +++ b/configure.ac @@ -4345,8 +4345,8 @@ if test "${with_native_compilation}" != "no"; then case "${opsys}" in # mingw32 loads the library dynamically. mingw32) ;; - # OpenBSD doesn't have libdl, all the functions are in libc - netbsd|openbsd) + # OpenBSD and Haiku don't have libdl, all the functions are in libc + netbsd|openbsd|haiku) LIBGCCJIT_LIBS="-lgccjit" ;; darwin) LIBGCCJIT_CFLAGS="${MAC_CFLAGS}"