updated question : Three questions when building newlib with arm-none-eabi toolchain

Jeff Johnston jjohnstn@redhat.com
Tue Apr 5 17:43:00 GMT 2011

On 03/30/2011 06:28 AM, Can Finner wrote:
> Hi, I previously sent this message but got no suggestion. in the past
> days I got a little progress and try to present the question again
> now.
> in file ./libgloss/config/default.mh, it says that the multilib option
> is passed in $(CFLAGS).
> targets like m68k seem to use
> <target-specific-defines>  -o $@ -c
> to compile target libraries and crt0s.
> the problem is that the counterpart Makefile rules in arm target as
> following does not use $(CFLAGS).
> This results in target libraries like librdimon.a are built without
> multilib option, which are useless.
> So any tips? Thanks.


Sorry for letting this slip.

It would appear that $(CFLAGS) was omitted in each of the commands in 
libgloss/arm/Makefile.in as you have noted.  It is being passed as part 
of the multi-lib processing in the top-level libgloss directory.

I have attached the patch.

-- Jeff J.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: arm-makefile-in.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20110405/7bbe7740/attachment.ksh>

More information about the Newlib mailing list