07d90f8
diff -up gpgme-1.2.0/src/gpgme-config.in.largefile gpgme-1.2.0/src/gpgme-config.in
07d90f8
--- gpgme-1.2.0/src/gpgme-config.in.largefile	2010-08-11 20:11:49.000000000 +0200
07d90f8
+++ gpgme-1.2.0/src/gpgme-config.in	2010-08-11 20:23:45.000000000 +0200
07d90f8
@@ -42,6 +42,10 @@ cflags_pthread=""
07d90f8
 cflags_glib="@GLIB_CFLAGS@"
07d90f8
 with_glib=
07d90f8
 
2c122df
+if test "0@NEED__FILE_OFFSET_BITS@" -gt "0" ; then
07d90f8
+    cflags_lfs="-D_FILE_OFFSET_BITS=@NEED__FILE_OFFSET_BITS@"
07d90f8
+fi
07d90f8
+
07d90f8
 output=""
07d90f8
 
07d90f8
 usage()
07d90f8
@@ -101,6 +105,9 @@ while test $# -gt 0; do
07d90f8
 	    exit 0
07d90f8
 	    ;;
07d90f8
         --cflags)
07d90f8
+	    if test "x$cflags_lfs" != "x"; then
07d90f8
+		output="$output $cflags_lfs"
07d90f8
+	    fi
07d90f8
 	    if test "x$includedir" != "x/usr/include" -a "x$includedir" != "x/include"; then
07d90f8
 		output="$output -I$includedir"
07d90f8
 	    fi