svn commit: trunk/buildroot/package/libusb
andersen at uclibc.org
andersen at uclibc.org
Fri Apr 14 18:32:18 UTC 2006
Author: andersen
Date: 2006-04-14 11:32:17 -0700 (Fri, 14 Apr 2006)
New Revision: 14856
Log:
bug 834: libusb: build fix: set big/little endian
The following patch fixes a compilation error in libusb (cannot
detectect endian while cross compiling)
Modified:
trunk/buildroot/package/libusb/libusb.mk
Changeset:
Modified: trunk/buildroot/package/libusb/libusb.mk
===================================================================
--- trunk/buildroot/package/libusb/libusb.mk 2006-04-14 18:28:35 UTC (rev 14855)
+++ trunk/buildroot/package/libusb/libusb.mk 2006-04-14 18:32:17 UTC (rev 14856)
@@ -11,6 +11,12 @@
LIBUSB_BINARY:=libusb.la
LIBUSB_TARGET_BINARY:=usr/lib/libusb.so
+ifeq ($(BR2_ENDIAN),"BIG")
+LIBUSB_BE:=yes
+else
+LIBUSB_BE:=no
+endif
+
$(DL_DIR)/$(LIBUSB_SOURCE):
$(WGET) -P $(DL_DIR) $(LIBUSB_SITE)/$(LIBUSB_SOURCE)
@@ -24,6 +30,7 @@
$(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
CFLAGS="$(TARGET_CFLAGS)" \
ac_cv_header_regex_h=no \
+ ac_cv_c_bigendian=$(LIBUSB_BE) \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
More information about the uClibc-cvs
mailing list