[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclibc-cvs
Subject:    [uClibc-cvs] CVS uClibc
From:       andersen () codepoet ! org (CVS User andersen)
Date:       2005-01-31 10:40:12
Message-ID: 20050131174009.D16B8B41B8 () codepoet ! org
[Download RAW message or body]

Update of /var/cvs/uClibc
In directory nail:/tmp/cvs-serv29131

Modified Files:
	Makefile 
Log Message:
Always use the target CC when generating include/bits/sysnum.h, since some
arches like mips have an include/asm/unistd.h that depends on #defines provided
only by gcc.  Therefore, since we may need to generate include/bits/sysnum.h
before the target CC is actually existant when bootstrapping a toolchain, we
must ensure that include/bits/sysnum.h is rebuilt every time we run make.
Sigh.  What a pain.
 -Erik


--- /var/cvs/uClibc/Makefile	2005/01/29 12:08:54	1.258
+++ /var/cvs/uClibc/Makefile	2005/01/31 17:40:08	1.259
@@ -104,7 +104,7 @@
 	fi
 	@cd $(TOPDIR); \
 	set -x -e; \
-	TOPDIR=. CC="$(HOSTCC)" /bin/sh extra/scripts/gen_bits_syscall_h.sh > include/bits/sysnum.h.new; \
+	TOPDIR=. CC="$(CC)" /bin/sh extra/scripts/gen_bits_syscall_h.sh > include/bits/sysnum.h.new; \
 	if cmp include/bits/sysnum.h include/bits/sysnum.h.new >/dev/null 2>&1; then \
 		$(RM) include/bits/sysnum.h.new; \
 	else \
@@ -112,7 +112,6 @@
 	fi
 	$(MAKE) -C libc/sysdeps/linux/common headers
 	$(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) headers
-	touch headers
 
 # Command used to download source code
 WGET:=wget --passive-ftp

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic