[Bug 747] 1.15.2 regression from 1.15.1 in ash parameter expansion

bugzilla at busybox.net bugzilla at busybox.net
Mon Nov 30 10:43:47 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=747





--- Comment #11 from Denys Vlasenko <vda.linux at googlemail.com>  2009-11-30 10:43:47 UTC ---
This means that this in Makefile.flags:

CFLAGS += $(call cc-option,-funsigned-char -static-libgcc,)

does not think your gcc supports these flags.

cc-option is (in scripts/Kbuild.include):

cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
             > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)

Since bare "i586-geexbox-linux-gnu-gcc -funsigned-char -static-libgcc" works
for you, I conclude either $(CC) or $(CFLAGS) expand to something strange.

Can you replace cc-option definition with

cc-option = $(shell echo "$(CC) $(CFLAGS) $(1)" >>/tmp/cc_cflags; if $(CC)
$(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
             > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)

, run "touch shell/ash.c; make" again and attach resulting /tmp/cc_cflags to
this bug?


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list