Commit b9bfc7684b94bf052203034cbddfdf01e26205e5

Chris Young 2012-06-09T17:33:08

pre-compiled sha1ppc.S.obj file with nasty CMake hack instructions as the cross-compile process refuses to build and link this file itself.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 041553f..d245109 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,7 @@ STRING(REGEX REPLACE "^.*LIBGIT2_VERSION \"[0-9]+\\.[0-9]+\\.([0-9]+).*$" "\\1" 
 SET(LIBGIT2_VERSION_STRING "${LIBGIT2_VERSION_MAJOR}.${LIBGIT2_VERSION_MINOR}.${LIBGIT2_VERSION_REV}")
 
 # Uncomment out the line below to use PowerPC SHA1
-#SET(SHA1_TYPE "ppc")
+SET(SHA1_TYPE "ppc")
 
 # Find required dependencies
 INCLUDE_DIRECTORIES(src include deps/http-parser)
diff --git a/README.amiga b/README.amiga
new file mode 100755
index 0000000..97414dd
--- /dev/null
+++ b/README.amiga
@@ -0,0 +1,4 @@
+Nasty build hack:
+When setting SHA1 to ppc in CMakeLists.txt, after running initial CMake,
+copy src/ppc/sha1ppc.S.obj to build/CMakeFiles/git2.dir/src/ppc/
+Add CMakeFiles/git2.dir/src/ppc/sha1ppc.S.obj to the list in build/CMakeFiles/git2.dir/link.txt
diff --git a/src/ppc/sha1ppc.S.obj b/src/ppc/sha1ppc.S.obj
new file mode 100644
index 0000000..a7dad60
Binary files /dev/null and b/src/ppc/sha1ppc.S.obj differ