[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp 79b9a26: * configure.ac: Fix native-comp OpenBSD bui
From: |
Andrea Corallo |
Subject: |
feature/native-comp 79b9a26: * configure.ac: Fix native-comp OpenBSD build. |
Date: |
Tue, 12 Jan 2021 15:34:20 -0500 (EST) |
branch: feature/native-comp
commit 79b9a262ffab37296a39c2d69cdabae153db10a7
Author: Omar Polo <op@omarpolo.com>
Commit: Andrea Corallo <akrl@sdf.org>
* configure.ac: Fix native-comp OpenBSD build.
---
configure.ac | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1f9fd33..2a4a373 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/native-comp 79b9a26: * configure.ac: Fix native-comp OpenBSD build.,
Andrea Corallo <=