]> git.pld-linux.org Git - packages/enchant2.git/blob - enchant2-link.patch
091393baeee06334e7cde56560838299b4df67db
[packages/enchant2.git] / enchant2-link.patch
1 --- enchant-2.5.0/configure.ac.orig     2023-05-24 11:23:45.000000000 +0200
2 +++ enchant-2.5.0/configure.ac  2023-07-24 19:59:56.784094186 +0200
3 @@ -169,7 +169,7 @@ AC_DEFUN([ENCHANT_CHECK_LIB_PROVIDER],
4        [_enchant_header=m4_default([$6], [$1[].h])
5        AC_CHECK_HEADERS([$_enchant_header], [_header_found=yes], [_header_found=no], [])
6        if test "$3" != NOLIB; then
7 -         AC_CHECK_LIB([$1], [$3],,, [$5])
8 +         AC_CHECK_LIB([$1], [$3],[:],, [$5])
9        else
10           ac_cv_lib_[]$1[]_[]$3=yes
11        fi
12 @@ -181,7 +181,10 @@ AC_DEFUN([ENCHANT_CHECK_LIB_PROVIDER],
13        else
14           with_[]$1=yes
15           build_providers="$build_providers $1"
16 -         LIBS="$LIBS $5"
17 +         if test "$3" != NOLIB; then
18 +            $2[]_LIBS="-l$1 $5"
19 +         fi
20 +         AC_SUBST($2[]_LIBS)
21        fi])
22     AM_CONDITIONAL(WITH_[]$2, test "$with_[]$1" = yes)])
23  
24 --- enchant-2.2.8/providers/Makefile.am.orig    2020-02-27 14:05:18.000000000 +0100
25 +++ enchant-2.2.8/providers/Makefile.am 2020-03-01 21:34:09.391694452 +0100
26 @@ -20,6 +20,10 @@
27  if WITH_HUNSPELL
28  provider_LTLIBRARIES += enchant_hunspell.la
29  endif
30 +enchant_aspell_la_LIBADD = $(ASPELL_LIBS)
31 +
32 +enchant_hspell_la_LIBADD = $(HSPELL_LIBS)
33 +
34  enchant_hunspell_la_CXXFLAGS = $(AM_CXXFLAGS) $(HUNSPELL_CFLAGS)
35  enchant_hunspell_la_LIBADD = $(HUNSPELL_LIBS)
36  enchant_hunspell_la_SOURCES = enchant_hunspell.cpp
This page took 0.026153 seconds and 2 git commands to generate.