[uClibc]0.9.16 compile for m68k fails : unrecognized option --bitwise-or

Erik Andersen andersen at codepoet.org
Sun Jan 12 09:06:22 UTC 2003


On Sat Jan 11, 2003 at 03:41:52PM -0500, Brad Clements wrote:
> If I remove the quotes around ARCH_CFLAGS in .config, compilation works, though 
> "make" rebuilds this file every time.
> 
> Also note there's too many quotes around the path to kernel/include, but if I remove the 
> quotes in .config KERNEL_SOURCE, I'm re-prompted for the path to the linux kernel 
> when I next "make".
> 
> I'm not a make wizard, can someone tell me how to fix this?

Can you try this and see if it fixes the problem?

--- uClibc/Rules.mak	13 Dec 2002 22:43:35 -0000	1.120
+++ uClibc/Rules.mak	12 Jan 2003 09:05:27 -0000
@@ -169,7 +169,7 @@
 WARNINGS+=-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
 # Some nice CFLAGS to work with
 CFLAGS:=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) \
-	-D_LIBC $(CPU_CFLAGS-y) $(ARCH_CFLAGS) -I$(TOPDIR)include -I.
+	-D_LIBC $(CPU_CFLAGS-y) $(subst ",, $(strip $(ARCH_CFLAGS))) -I$(TOPDIR)include -I.
 
 ifeq ($(DODEBUG),y)
     CFLAGS += -g

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list