This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix ppc-aix build failures with spaces in CC (internal) variable


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,

Olivier

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

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

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


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