Installing headers with 0.9.29 spawns gcc errors

Bernhard Fischer rep.dot.nop at gmail.com
Thu Jan 17 16:08:04 UTC 2008


On Wed, Jun 20, 2007 at 09:36:21PM +0200, Yann E. MORIN wrote:
>Hello all!
>
>On Thursday 24 May 2007 18:37, Yann E. MORIN wrote:
>> So, what about the patch I submitted few days ago (attached again)?
>
>Hello? Any one cares to comment?


For compatibility (so you can continue to use oldconfig install_dev)
install_headers has to depend on headers, like so (copy'n paste, sorry):

Index: uClibc/Makefile.in
===================================================================
--- uClibc/Makefile.in  (revision 20862)
+++ uClibc/Makefile.in  (working copy)
@@ -91,6 +91,12 @@ headers: include/bits/uClibc_config.h
                        $(LN) -fs $$i .; \
                done; \
        fi
+ifeq ($(UCLIBC_HAS_LOCALE),y)
+       $(MAKE) -C extra/locale locale_headers
+endif
+
+
+pregen: headers
        $(Q)\
        set -e; \
        cd $(top_builddir); \
@@ -102,11 +108,7 @@ headers: include/bits/uClibc_config.h
        else \
                mv -f $$tmp include/bits/sysnum.h; \
        fi
-ifeq ($(UCLIBC_HAS_LOCALE),y)
-       $(MAKE) -C extra/locale locale_headers
-endif
 
-pregen: headers
 
 install: install_runtime install_dev
 
@@ -114,7 +116,7 @@ install: install_runtime install_dev
 RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB=$(shell
$(top_srcdir)extra/scripts/relative_path.sh $(DEVEL_PREFIX)lib
$(RUNTIME_PREFIX)lib)
 
 # Installs header files.
-install_headers:
+install_headers: headers
        $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
        printf ".svn\n.cvsignore\nCVS\n" > tar_exclude ; \
        $(TAR) -chf - -X tar_exclude include \


[build gcc --enable-languages=c]
make all (depends on pregen, so all is well)

I'll commit this to trunk in a few days and later to the stable branch.



More information about the uClibc mailing list