Paul, all,

On Thursday 17 May 2007 21:48, Paul Brook wrote:
> > Unfortunately, Rules.mak does the following (only arm shown):
> > CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN)+=-EL
> >...
> > Shouldn't we add each of those {gcc,as,ld} options using call_{gcc,as,ld) ?
> No. We shouldn't be invoking the compiler in the first place.
> We should either use the right compiler (with all the right options), or 
> don't 
> use a compiler at all.

What do you think of the attached patch?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
°------------------------------°-------°------------------°--------------------°
Index: uClibc/Makefile.in
===================================================================
--- uClibc/Makefile.in	(revision 18643)
+++ uClibc/Makefile.in	(working copy)
@@ -96,7 +96,7 @@
 	cd $(top_builddir); \
 	tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/null`; \
 	[ -z "$$tmp" ] && tmp='include/bits/sysnum.h.new'; \
-	KERNEL_HEADERS="${KERNEL_HEADERS}" top_builddir=. CC="$(CC) $(CPU_CFLAGS)" $(SHELL) extra/scripts/gen_bits_syscall_h.sh > $$tmp; \
+	KERNEL_HEADERS="${KERNEL_HEADERS}" top_builddir=. CC=$(HOSTCC) $(SHELL) extra/scripts/gen_bits_syscall_h.sh > $$tmp; \
 	if cmp include/bits/sysnum.h $$tmp >/dev/null 2>&1; then \
 		$(RM) $$tmp; \
 	else \
_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to