From: Martin Mares Date: Mon, 11 Feb 2019 11:32:13 +0000 (+0100) Subject: Configure: Recognize "armhf" architecture X-Git-Tag: v6.5.10~5 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c624623f6b9a79e14b2f2663145931e70908f212;p=libucw.git Configure: Recognize "armhf" architecture I needed to build LibUCW on Raspberry PI. However, support for armhf is still a little bit hackish: You need to configure with "ARCH=armhf" (auto-detection from GCC machine type does now work) and tests require an explicit export of LD_LIBRARY_PATH run/lib. --- diff --git a/ucw/perl/UCW/Configure/C.pm b/ucw/perl/UCW/Configure/C.pm index b1475925..730b5145 100644 --- a/ucw/perl/UCW/Configure/C.pm +++ b/ucw/perl/UCW/Configure/C.pm @@ -94,6 +94,13 @@ if ($arch eq 'i386') { Set("CPU_BIG_ENDIAN"); UnSet("CPU_ALLOW_UNALIGNED"); Set("CPU_STRUCT_ALIGN" => 4); +} elsif ($arch eq "armhf") { + Set("CPU_ARM"); + UnSet("CPU_64BIT_POINTERS"); + Set("CPU_LITTLE_ENDIAN"); + UnSet("CPU_BIG_ENDIAN"); + UnSet("CPU_ALLOW_UNALIGNED"); + Set("CPU_STRUCT_ALIGN" => 4); } elsif (!Get("CPU_LITTLE_ENDIAN") && !Get("CPU_BIG_ENDIAN")) { Fail "Architecture not recognized, please set CPU_xxx variables manually."; }