components/gnome/evolution-data-server/patches/03-libcamel-sqlite3.patch
changeset 7192 bcbc95c2f212
equal deleted inserted replaced
7191:001012c619ce 7192:bcbc95c2f212
       
     1 This ensures that Mozilla nss/nspr libraries are placed last in
       
     2 flags/libraries so that the sqlite3 library found in /usr/lib is preferred
       
     3 over the one found in /usr/lib/mps.
       
     4 
       
     5 We need to fix Solaris to not have conflicting sqlite3 libraries, instead
       
     6 of forcing upstream to hack around this.
       
     7 
       
     8 --- evolution-data-server-3.16.2/configure.ac	2015-07-16 12:48:00.510697572 -0700
       
     9 +++ evolution-data-server-3.16.2/configure.ac	2015-07-16 12:47:38.408295304 -0700
       
    10 @@ -1452,8 +1452,8 @@
       
    11  dnl ******************************
       
    12  AC_DEFUN([EVO_SET_COMPILE_FLAGS], [
       
    13  	PKG_CHECK_MODULES([$1], [$2])
       
    14 -	$1_CFLAGS="[$]$1_CFLAGS $3 "
       
    15 -	$1_LIBS="[$]$1_LIBS $4 "
       
    16 +	$1_CFLAGS="$3 [$]$1_CFLAGS "
       
    17 +	$1_LIBS="$4 [$]$1_LIBS "
       
    18  ])
       
    19  
       
    20  dnl ******************************
       
    21 @@ -1626,7 +1626,7 @@
       
    22  
       
    23  AM_CONDITIONAL(ENABLE_LARGEFILE, [test "x$enable_largefile" = "xyes"])
       
    24  
       
    25 -EVO_SET_COMPILE_FLAGS(CAMEL, gio-2.0 gmodule-2.0 $mozilla_nss $mozilla_nspr sqlite3 >= sqlite_minimum_version, $KRB5_CFLAGS $MANUAL_NSS_CFLAGS $MANUAL_NSPR_CFLAGS $LARGEFILE_CFLAGS $ICU_CFLAGS, -lz $KRB5_LIBS $MANUAL_NSS_LIBS $MANUAL_NSPR_LIBS $ICU_LIBS)
       
    26 +EVO_SET_COMPILE_FLAGS(CAMEL, gio-2.0 gmodule-2.0 $mozilla_nss $mozilla_nspr, $SQLITE3_CFLAGS $KRB5_CFLAGS $MANUAL_NSS_CFLAGS $MANUAL_NSPR_CFLAGS $LARGEFILE_CFLAGS $ICU_CFLAGS, $SQLITE3_LIBS -lz $KRB5_LIBS $MANUAL_NSS_LIBS $MANUAL_NSPR_LIBS $ICU_LIBS)
       
    27  AC_SUBST(CAMEL_CFLAGS)
       
    28  AC_SUBST(CAMEL_LIBS)
       
    29