On 10/02/2013 10:02 PM, Carlos O'Donell wrote:
We are missing the global swap_endianness_p in locfile.o, we should
be able
to include it like this:
@@ -1201,6 +1201,7 @@ touch -r sunrpc/etc.rpc $RPM_BUILD_ROOT/etc/rpc
# transition from ld-linux.so.3 to ld-linux-armhf.so.3.
pushd build-%{target}
$GCC -Os -g -o build-locale-archive %{SOURCE1} \
+ ../build-%{target}/locale/locfile.o \
../build-%{target}/locale/locarchive.o \
../build-%{target}/locale/md5.o \
-I. -DDATADIR=\"%{_datadir}\" -DPREFIX=\"%{_prefix}\" \
OK, that brings in a *lot* of dependencies.
This is simpler:
diff --git a/build-locale-archive.c b/build-locale-archive.c
index 474f666..23b7421 100644
--- a/build-locale-archive.c
+++ b/build-locale-archive.c
@@ -26,6 +26,10 @@ int verbose = 0;
int max_locarchive_open_retry = 10;
const char *output_prefix;
+/* True if the locale files use the opposite endianness to the
+ machine running localedef. */
+bool swap_endianness_p;
+
static const char *locnames[] =
{
#define DEFINE_CATEGORY(category, category_name, items, a) \
---
Our own copy of swap_endianness_p is all that's needed.
Testing again with a temporary set of locales.
Cheers,
Carlos.