GNU bug report logs -
#25350
Automake does not override CC.
Previous Next
Reported by: MrUmunhum <at> CruzIO.com
Date: Wed, 4 Jan 2017 02:57:01 UTC
Severity: normal
Tags: notabug
Done: Mathieu Lirzin <mthl <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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
This bug report was last modified 7 years and 341 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.