Linux needs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 too
[p5sagit/p5-mst-13.2.git] / hints / linux.sh
index 82b8703..80fda07 100644 (file)
@@ -276,3 +276,13 @@ $define|true|[yY]*)
        ;;
 esac
 EOCBU
+
+cat > UU/uselargefiles.cbu <<'EOCBU'
+# This script UU/uselargefiles.cbu will get 'called-back' by Configure 
+# after it has prompted the user for whether to use large files.
+case "$uselargefiles" in
+''|$define|true|[yY]*)
+       ccflags="$ccflags -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+       ;;
+esac
+EOCBU