[fedora-arm] armv7hl requirements
Gordan Bobic
gordan at bobich.net
Thu May 12 15:59:53 UTC 2011
I must say that I like this idea A LOT! :D
This might just make things like LibreOffice builds actually plausible.
Gordan
DJ Delorie wrote:
> Jon asked me to join this list, here's my first contribution...
>
>> though that might be a bit hard since gcc will take some time to compile.
>
> Here's a trick to speeding up arm compiles. Install distcc on the arm
> device. On your local x86 machines, install a hacked distccd that runs
> an arm cross compiler.
>
> Now you can add your x86 boxen, which tend to be faster than arm
> devices, as additional build hosts, or in my case, the only build host
> - I let the arm device worry about preprocessing et al and let the
> desktop do the compiling.
>
> Since there are no hacks on the arm side, this doesn't break the
> "Fedora must build native" rule - as far as the arm side knows, it
> *is* running native, and simply disabling distcc still works, just
> slower.
>
> Use a non-standard port for these distcc's so you won't confuse any
> native distcc users.
>
> Here's the distccd hack you need (change the path as appropriate for
> your local machine):
>
> --- distcc-2.18.3/src/arg.c 2004-11-30 07:13:53.000000000 -0500
> +++ distcc-2.18.3-dj/src/arg.c 2011-03-14 18:48:55.000000000 -0400
> @@ -147,6 +147,19 @@ int dcc_scan_args(char *argv[], char **i
>
> *input_file = *output_file = NULL;
>
> +#define ARMPATH "/envy/dj/ges/arm/install/bin/armv5tel-redhat-linux-gnueabi-"
> + if (strcmp (argv[0], "gcc") == 0
> + || strcmp (argv[0], "cc") == 0) {
> + argv[0] = strdup( ARMPATH "gcc");
> + }
> + if (strcmp (argv[0], "g++") == 0
> + || strcmp (argv[0], "c++") == 0) {
> + argv[0] = strdup(ARMPATH "g++");
> + }
> + if (strcmp (argv[0], "as") == 0) {
> + argv[0] = strdup(ARMPATH "as");
> + }
> +
> for (i = 0; (a = argv[i]); i++) {
> if (a[0] == '-') {
> if (!strcmp(a, "-E")) {
> _______________________________________________
> arm mailing list
> arm at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/arm
More information about the arm
mailing list