]> git.pld-linux.org Git - packages/libetpan.git/blob - libetpan-link.patch
- added link patch (fixes curl and expat detection with as-needed enforced)
[packages/libetpan.git] / libetpan-link.patch
1 --- libetpan-1.1/configure.ac.orig      2012-09-22 10:40:15.782709486 +0200
2 +++ libetpan-1.1/configure.ac   2012-09-22 17:24:21.455537464 +0200
3 @@ -577,12 +577,12 @@
4    AC_CHECK_HEADER(curl/curl.h, [libcurl=yes])
5    if test "x$libcurl" = "xyes"; then
6      AC_MSG_CHECKING([whether curl-config hints compiles and links fine])
7 -    OLDFLAGS="$LDFLAGS"
8 -    LDFLAGS="$LDFLAGS `$libcurlconfig --libs 2>/dev/null`"
9 +    OLDLIBS="$LIBS"
10 +    LIBS="$LIBS `$libcurlconfig --libs 2>/dev/null`"
11      AC_TRY_LINK([], [curl_easy_init();], [libcurl=yes], [libcurl=no])
12      AC_MSG_RESULT([$libcurl])
13      if test "x$libcurl" = "xno"; then
14 -      LDFLAGS="$OLDFLAGS"
15 +      LIBS="$OLDLIBS"
16      fi
17    fi
18  
19 @@ -609,12 +609,12 @@
20  AC_CHECK_HEADER(expat.h, [libexpat=yes])
21  if test "x$libexpat" = "xyes"; then
22    AC_MSG_CHECKING([whether libexpat compiles and links fine])
23 -  OLDFLAGS="$LDFLAGS"
24 -  LDFLAGS="$LDFLAGS -lexpat"
25 +  OLDLIBS="$LIBS"
26 +  LIBS="$LIBS -lexpat"
27    AC_TRY_LINK([], [XML_SetElementHandler();], [libexpat=yes], [libexpat=no])
28    AC_MSG_RESULT([$libexpat])
29    if test "x$libexpat" = "xno"; then
30 -    LDFLAGS="$OLDFLAGS"
31 +    LIBS="$OLDLIBS"
32    fi
33  fi
34  
This page took 0.082131 seconds and 3 git commands to generate.