
Catalin Marinas ha scritto:
Paolo Broggini pbroggini@softool.ch wrote:
Catalin Marinas ha scritto:
PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,$(call cc-option,-mabi=apcs-gnu,))
Great, with this it builds fine :-) but the statement contained in the head of git 'config.mk' is:
PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
My proposals tries both -mapcs-32 and -mabi=apcs-gnu and if neither works it doesn't add anything.
-mapcs-32 do work, -mabi=apcs-gnu doesn't!
In your config.mk file, can you change -mapcs-32 with -g (this one would never fail) just to make sure there isn't any problem with the option checker?
Ok, see below: 1) PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) -> gcc complains about '-mabi=apcs-gnu' (see my original mail)
2) PLATFORM_CPPFLAGS +=$(call cc-option,-g,-mabi=apcs-gnu) -> everything compiles fine, the option used is '-g'
3) PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-g) -> everything compiles fine, the option used is '-mapcs-32'
Thanks
-P.Broggini