summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2006-09-19 15:16:55 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2006-09-19 15:16:55 +0000
commit775684a5ed19e12e8112f93136e0f2758424b3b3 (patch)
treeaa85c82f6ef78ac998ef3d32b3e7296011afafca /package
parent564aac603d7860f0c3553d92ac7d1d9cf5d900d3 (diff)
downloadbuildroot-novena-775684a5ed19e12e8112f93136e0f2758424b3b3.tar.gz
buildroot-novena-775684a5ed19e12e8112f93136e0f2758424b3b3.zip
fix big/little endian
Diffstat (limited to 'package')
-rw-r--r--package/libglib12/libglib12.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/libglib12/libglib12.mk b/package/libglib12/libglib12.mk
index ca43940fd..8f8acb569 100644
--- a/package/libglib12/libglib12.mk
+++ b/package/libglib12/libglib12.mk
@@ -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) \