Subject: bug#25350: Automake does not override CC.

From: "william estrada" <[email-masked]>
Date: Tue, 3 Jan 2017 18:06:12 -0800

Hello,
I have a Makefile.am that creates a Makefile that does 3 compiles, one for
each target CPU.
 # src/event/Makefile.am
AM_LDLAGS  = --Pedantic -Wall -Std=C99 -O2
bin_PROGRAMS =
include x64.am
include arm.am
include i686.am
---------------------------------------
# src/event/x64.am
bin_PROGRAMS      += event_x64
event_x64_SOURCES  =  event.c
event_x64_CFLAGS   = -m64
---------------------------------------
# src/event/i686.am
bin_PROGRAMS       += event_i686
event_i686_SOURCES  =  event.c
event_i686_CFLAGS   = -m32
---------------------------------------
# src/event/arm.am
bin_PROGRAMS      += event_arm
event_arm_SOURCES  =  event.c
event_arm_CFLAGS   = -DARM
event_arm_CC       =  arm-linux-gnu-gcc
AM_CC              =  arm-linux-gnu-gcc

My problem is my gcc on my Fedora 23 does not support the '-marm', so I
need to change the CC flag.
Using event_arm_CC or AM_CC does not work.

How to change the compiler?

-- 
William Estrada
Mt Umunhum, CA, USA, Earth
HTTP:// Mt-Umunhum-Wireless.net
Skype: MrUmunhum