{"thread":{"id":"40936","subject":"change to allow cross compile ARM and MIPS‏","startedAt":"2015-12-04T22:47:54Z","lastAt":"2015-12-04T22:47:54Z","messageCount":1,"participants":["Ronny Borchert"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"274035","messageId":"loom.20151204T234603-742@post.gmane.org","threadId":"40936","inReplyTo":null,"subject":"change to allow cross compile ARM and MIPS‏","fromName":"Ronny Borchert","fromEmail":"rborchert@live.de","sentAt":"2015-12-04T22:47:54Z","receivedAt":"2015-12-04T22:47:54Z","isPatch":false,"sender":{"key":"rborchert@live.de","avatar":null},"body":"I have add an description into INSTALL, that other user have direct an\nindicator.\n\ndiff --git a/INSTALL b/INSTALL\nindex ffb071e..5918182 100644\n--- a/INSTALL\n+++ b/INSTALL\n@@ -2,13 +2,13 @@\n         Git installation\n \n Normally you can just do \"make\" followed by \"make install\", and that\n-will install the git programs in your own ~/bin/ directory.  If you want\n+will install the git programs in your own ~/bin/ directory. If you want\n to do a global install, you can do\n \n     $ make prefix=/usr all doc info ;# as yourself\n     # make prefix=/usr install install-doc install-html install-info ;# as root\n \n-(or prefix=/usr/local, of course).  Just like any program suite\n+(or prefix=/usr/local, of course). Just like any program suite\n that uses $prefix, the built results have some paths encoded,\n which are derived from $prefix, so \"make all; make prefix=/usr\n install\" would not work.\n@@ -25,6 +25,31 @@ set up install paths (via config.mak.autogen), so you can\nwrite instead\n     $ make all doc ;# as yourself\n     # make install install-doc install-html;# as root\n \n+If you want to create a cross build of git, i.e. ARM or MIPS, you\n+need to add addtional arguments to configure,\n+i.e. for MIPS little endian\n+\n+        $ ./configure --build=x86_64-linux \\\n+                      --host=mipsel-oe-linux \\\n+                      --cache-file=config.cache\n+\n+i.e. for ARM\n+\n+        $ ./configure --build=x86_64-linux \\\n+                      --host=arm-eabi \\\n+                      --cache-file=config.cache\n+\n+To make this now work you need to create a config.cache file next to\n+the configure. In this file you have to configure architecture\n+specific behavior, example content could be\n+\n+ac_cv_snprintf_returns_bogus=${ac_cv_snprintf_returns_bogus=no}\n+ac_cv_fread_reads_directories=${ac_cv_fread_reads_directories=no}\n+\n+For details about the meaning refer to the source code of the tests\n+in the configure.ac by search of the ac_cv_...\n+Important is that you assign 'no' or 'yes'.\n+\n"}]}