From c624623f6b9a79e14b2f2663145931e70908f212 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 11 Feb 2019 12:32:13 +0100 Subject: [PATCH] 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. --- ucw/perl/UCW/Configure/C.pm | 7 +++++++ 1 file changed, 7 insertions(+) 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."; } -- 2.39.2