fix big/little endian
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 19 Sep 2006 15:16:55 +0000 (15:16 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 19 Sep 2006 15:16:55 +0000 (15:16 -0000)
package/libglib12/libglib12.mk

index ca43940fd69962c7d5d160088580d302f3fa97c5..8f8acb569d5670f1f2ae255ec4571e01ada40e3d 100644 (file)
@@ -9,6 +9,11 @@ LIBGLIB12_CAT:=zcat
 LIBGLIB12_DIR:=$(BUILD_DIR)/glib-1.2.10
 LIBGLIB12_BINARY:=libglib.a
 
+ifeq ($(BR2_ENDIAN),"BIG")
+LIBGLIB12_BE:=yes
+else
+LIBGLIB12_BE:=no
+endif
 
 $(DL_DIR)/$(LIBGLIB12_SOURCE):
         $(WGET) -P $(DL_DIR) $(LIBGLIB12_SITE)/$(LIBGLIB12_SOURCE)
@@ -24,6 +29,7 @@ $(LIBGLIB12_DIR)/.unpacked: $(DL_DIR)/$(LIBGLIB12_SOURCE)
 $(LIBGLIB12_DIR)/.configured: $(LIBGLIB12_DIR)/.unpacked
        (cd $(LIBGLIB12_DIR); rm -rf config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
+               ac_cv_c_bigendian=$(LIBGLIB12_BE) \
                ./configure \
                --host=$(REAL_GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \