diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000000000000000000000000000000000..86c8a14f801041a5263ef8cfdb261fdced0d7a8f
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,13 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text=auto
+*.pm text eol=lf
+*.pl text eol=lf
+*.t text eol=lf
+*.asciidoc text eol=lf
+Makefile eol=lf
+*.xslt text eol=lf
+*.xml text eol=lf
+*.so binary
+*.tif binary
+*.tiff binary
+