r4235 - in trunk/src/target/opkg: . libopkg

thomas at sita.openmoko.org thomas at sita.openmoko.org
Thu Mar 20 13:17:43 CET 2008


Author: thomas
Date: 2008-03-20 13:17:42 +0100 (Thu, 20 Mar 2008)
New Revision: 4235

Modified:
   trunk/src/target/opkg/configure.ac
   trunk/src/target/opkg/libopkg/Makefile.am
Log:
opkg: Fix md5 sum on big endian systems.
      Patch from Jeremy Lain?\195?\169 <jeremy laine bolloretelecom eu>


Modified: trunk/src/target/opkg/configure.ac
===================================================================
--- trunk/src/target/opkg/configure.ac	2008-03-20 12:07:09 UTC (rev 4234)
+++ trunk/src/target/opkg/configure.ac	2008-03-20 12:17:42 UTC (rev 4235)
@@ -93,6 +93,10 @@
 AC_TYPE_SIZE_T
 AC_CHECK_MEMBERS([struct stat.st_rdev])
 
+# Checks endianness
+AC_C_BIGENDIAN(ENDIAN_CFLAGS="-DWORDS_BIGENDIAN=1",)
+AC_SUBST(BIGENDIAN_CFLAGS)
+
 # Don't do annoying tests that don't work when cross-compiling, just trust them.
 # The AC_FUNC_MEMCMP test doesn't work during a cross-compile, disable.
 # AC_FUNC_MEMCMP

Modified: trunk/src/target/opkg/libopkg/Makefile.am
===================================================================
--- trunk/src/target/opkg/libopkg/Makefile.am	2008-03-20 12:07:09 UTC (rev 4234)
+++ trunk/src/target/opkg/libopkg/Makefile.am	2008-03-20 12:17:42 UTC (rev 4235)
@@ -59,7 +59,7 @@
 	$(opkg_cmd_sources) $(opkg_db_sources) \
 	$(opkg_util_sources) $(opkg_list_sources)
 
-libopkg_la_CFLAGS = $(ALL_CFLAGS)  $(CURL_CFLAGS) $(GPGME_CFLAGS)
+libopkg_la_CFLAGS = $(ALL_CFLAGS) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS)
 lib_LTLIBRARIES = libopkg.la
 
 





More information about the commitlog mailing list