diff options
| author | Omar Polo | 2021-01-12 21:27:11 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2021-01-12 21:29:29 +0100 |
| commit | 79b9a262ffab37296a39c2d69cdabae153db10a7 (patch) | |
| tree | 0817b0d785cf28d41c1de40634590490f736c8ea | |
| parent | 42ff68ec2f1149704da59fd692fafb095a44cce2 (diff) | |
| download | emacs-79b9a262ffab37296a39c2d69cdabae153db10a7.tar.gz emacs-79b9a262ffab37296a39c2d69cdabae153db10a7.zip | |
* configure.ac: Fix native-comp OpenBSD build.
| -rw-r--r-- | configure.ac | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 1f9fd330a35..2a4a373371c 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3825,10 +3825,15 @@ if test "${with_nativecomp}" != "no"; then | |||
| 3825 | AC_RUN_IFELSE([libgccjit_smoke_test], [], [libgccjit_broken]) | 3825 | AC_RUN_IFELSE([libgccjit_smoke_test], [], [libgccjit_broken]) |
| 3826 | LIBS=$emacs_save_LIBS | 3826 | LIBS=$emacs_save_LIBS |
| 3827 | HAVE_NATIVE_COMP=yes | 3827 | HAVE_NATIVE_COMP=yes |
| 3828 | # mingw32 loads the library dynamically. | 3828 | case "${opsys}" in |
| 3829 | if test "${opsys}" != "mingw32"; then | 3829 | # mingw32 loads the library dynamically. |
| 3830 | LIBGCCJIT_LIB="-lgccjit -ldl" | 3830 | mingw32) ;; |
| 3831 | fi | 3831 | # OpenBSD doesn't have libdl, all the functions are in libc |
| 3832 | openbsd) | ||
| 3833 | LIBGCCJIT_LIB="-lgccjit" ;; | ||
| 3834 | *) | ||
| 3835 | LIBGCCJIT_LIB="-lgccjit -ldl" ;; | ||
| 3836 | esac | ||
| 3832 | NEED_DYNLIB=yes | 3837 | NEED_DYNLIB=yes |
| 3833 | AC_DEFINE(HAVE_NATIVE_COMP, 1, [Define to 1 if native compiler is available.]) | 3838 | AC_DEFINE(HAVE_NATIVE_COMP, 1, [Define to 1 if native compiler is available.]) |
| 3834 | fi | 3839 | fi |