On 18/06/11 00:00, Ian Lance Taylor wrote:
You are saying that configure is using TARGET_LIBGCC2_FLAGS, but that you want to set something so that it uses TARGET_LIBGCC2_FLAGS? Are you missing a "not" in there somewhere? Or do I misunderstand?
Thanks for the reply Ian. I am using MULTILIBS. However, there's a flag that I want all the LIBGCC2 built with. That's a special flag for my backend -mas-mode. I added this to TARGET_LIBGCC2_FLAGS, however, libgcc/configure is not passing this flag to the configure programs and configure simply flags.
I noticed that it works if I do make CFLAGS_FOR_BUILD=-mas-mode but I wonder if there's a cleaner way (so that I don't need to pass flags through the command line.
Is it libgcc/configure that is failing? If so it sounds like you want to set MULTILIB_EXTRA_OPTS, per your earlier question.
Yes, it's libgcc/configure that's failing. So, you mean I should MULTILIB_EXTRA_OPTS=-mas-mode in my t- makefile fragment? -- PMatos