summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-09 17:33:08 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-09 17:33:08 +0100
commitb9bfc7684b94bf052203034cbddfdf01e26205e5 (patch)
treecd7150b948381726b0e96ea28ab1fe8cd1f035ad
parent5c0fd7b976b8fb1271dbe61b9ea456672ab5b370 (diff)
downloadlibgit2-b9bfc7684b94bf052203034cbddfdf01e26205e5.tar.gz
pre-compiled sha1ppc.S.obj file with nasty CMake hack instructions as the cross-compile process refuses to build and link this file itself.
-rw-r--r--CMakeLists.txt2
-rwxr-xr-xREADME.amiga4
-rw-r--r--src/ppc/sha1ppc.S.objbin0 -> 4471 bytes
3 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 041553fd0..d245109bf 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 000000000..97414dda2
--- /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 000000000..a7dad600f
--- /dev/null
+++ b/src/ppc/sha1ppc.S.obj
Binary files differ