This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Newlib doubt


>

Hi Johnston,

I got newlib working OK. But for I needed to add some compiler scripts(custom) to get this working(line
-fno-delayed-branch -Wa,-g2). And I wanted to prepare a patch so I can do it any time I want. So, I
decided to hack-up newlib/Makefile.in to CFLAGS. But unfortunately the configure script does not pick up
the flags from Makefile.in. I am using newlib-1.8.2. Do you think it is a bug or do you think it is
intentional??
 Here is the corresponding entry in newlib/configure.(line number 1403).


s%^CFLAGS[  ]*=.*$%CFLAGS = ${CFLAGS}%

I changed it to :

s%\(^CFLAGS[    ]*=.*$\)%\1 ${CFLAGS}%

Thank you,
Bharani.

>
>
> Bharani,
>
>   Try adding an empty ansi.h file in libc/include/machine.  Another newlib user using netbsd ran
> into a similiar problem.  The other header files you mention should be around as they are supposed
> to be built by the compiler.
>
>   I'm not sure why you are adding the redundant mips in your configuration.  Try just mips-elf.  I
> assume that you have a mips-elf-gcc somewhere.
>
> -- Jeff J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]