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