]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac: Fix native-comp OpenBSD build.
authorOmar Polo <op@omarpolo.com>
Tue, 12 Jan 2021 20:27:11 +0000 (21:27 +0100)
committerAndrea Corallo <akrl@sdf.org>
Tue, 12 Jan 2021 20:29:29 +0000 (21:29 +0100)
configure.ac

index 1f9fd330a35cfb4442214f159b10072b0a7220cc..2a4a373371cfe3e8ee439f8bdc387e5a70667ccc 100644 (file)
@@ -3825,10 +3825,15 @@ if test "${with_nativecomp}" != "no"; then
     AC_RUN_IFELSE([libgccjit_smoke_test], [], [libgccjit_broken])
     LIBS=$emacs_save_LIBS
     HAVE_NATIVE_COMP=yes
-    # mingw32 loads the library dynamically.
-    if test "${opsys}" != "mingw32"; then
-      LIBGCCJIT_LIB="-lgccjit -ldl"
-    fi
+    case "${opsys}" in
+      # mingw32 loads the library dynamically.
+      mingw32) ;;
+      # OpenBSD doesn't have libdl, all the functions are in libc
+      openbsd)
+        LIBGCCJIT_LIB="-lgccjit" ;;
+      *)
+        LIBGCCJIT_LIB="-lgccjit -ldl" ;;
+    esac
     NEED_DYNLIB=yes
     AC_DEFINE(HAVE_NATIVE_COMP, 1, [Define to 1 if native compiler is available.])
 fi