We sometimes get to invoke Makefile targets with a CC variable value containing
spaces (for extra options, typically). This causes failure at some stages on
powerpc-aix from mh-ppc-aix which has

  LDFLAGS = `case $(CC) in *gcc*) echo -Wl,-bbigtoc ;; esac;`

The problem is the expansion of spaces as part of the case controlling value,
triggering shell syntax errors.

This patch fixes this by adding quotes around.

OK to commit ?

Bootstrapped and regtested on powerpc-aix-5.2.

Thanks in adavnce,


2012-04-11  Olivier Hainque  <hain...@adacore.com>

        * config/mh-ppc-aix (LDFLAGS): Quote $(CC).

Attachment: aix-quotecc.dif
Description: video/dv

Reply via email to