[uClibc] buildroot error on Mac OS X
Philip Rakity
prakity at yahoo.com
Wed Jan 19 06:44:20 UTC 2005
I sent Mike the patch for not compile ldd via a config
parm and Mike is looking at the patch.
The patch is as follows BUT I am not sure that is
completely correct since I think the config file for
uClibc in buildroot may need modifying.
In any case you can just type
make
after it fails and it should be okay UNLESS you are
building an xscale arm build and then you will need
the other patch I posted to the list.
regards,
Philip
Index: Makefile
===================================================================
RCS file: /var/cvs/uClibc/Makefile,v
retrieving revision 1.249
diff -u -r1.249 Makefile
--- Makefile 11 Dec 2004 12:05:31 -0000 1.249
+++ Makefile 11 Jan 2005 04:09:17 -0000
@@ -240,12 +240,16 @@
endif
.PHONY: utils
+ifeq ($(strip $(HOST_SUPPORTS_LDD_UTILS)),y)
ifeq ($(strip $(HAVE_SHARED)),y)
utils:
$(MAKE) CROSS=$(CROSS) CC=$(CC) -C utils
else
utils: dummy
endif
+else
+utils: dummy
+endif
# Installs helper applications, such as 'ldd' and
'ldconfig'
install_utils: utils
Index: extra/Configs/Config.in
===================================================================
RCS file: /var/cvs/uClibc/extra/Configs/Config.in,v
retrieving revision 1.57
diff -u -r1.57 Config.in
--- extra/Configs/Config.in 6 Oct 2004 07:34:13
-0000 1.57
+++ extra/Configs/Config.in 11 Jan 2005 04:09:28
-0000
@@ -173,6 +173,15 @@
bool
default n
+config HOST_SUPPORTS_LDD_UTILS
+ bool "Build host based utilities (ldd, readelf
etc)"
+ default y
+ help
+ uClibc can build host tools for ldd, readelf
etc. These host tools
+ assume your system can support elf. Some
hosts like Mac OS X do not
+ support elf and these tools cannot be built.
If you are building
+ on one of these systems you will most
centainly want to answer N.
+
config BUILD_UCLIBC_LDSO
bool "Compile native shared library loader"
depends on HAVE_SHARED && !ARCH_HAS_NO_LDSO
Index: utils/Makefile
===================================================================
RCS file: /var/cvs/uClibc/utils/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- utils/Makefile 15 Oct 2004 08:25:36 -0000
1.20
+++ utils/Makefile 11 Jan 2005 04:09:55 -0000
@@ -29,11 +29,15 @@
# NOTE: We build the utils AFTER we have a
uClibc-targeted toolchain.
+ifeq ($(strip $(HOST_SUPPORTS_LDD_UTILS)),y)
ifeq ($(strip $(HAVE_SHARED)),y)
all: $(TARGETS) $(TARGET_ICONV)
else
all: $(TARGET_ICONV)
endif
+else
+all:
+endif
headers:
@$(LN) -fs $(TOPDIR)include/elf.h
@@ -90,6 +94,7 @@
readelf.c readsoname.c ldconfig.c ldd.c:
headers
install: all
+ifeq ($(strip $(HOST_SUPPORTS_LDD_UTILS)),y)
ifeq ($(strip $(HAVE_SHARED)),y)
$(INSTALL) -d $(PREFIX)$(RUNTIME_PREFIX)sbin
$(INSTALL) -d
$(PREFIX)$(RUNTIME_PREFIX)usr/bin
@@ -100,3 +105,4 @@
ifeq ($(strip $(UCLIBC_HAS_LOCALE)),y)
$(INSTALL) -m 755 iconv
$(PREFIX)$(RUNTIME_PREFIX)usr/bin/iconv
endif
+endif
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
More information about the uClibc
mailing list