Project

General

Profile

Actions

Bug #8762

closed

CFLAGS and LDFLAGS are not set properly in Makefile when they are already set as environment variables

Added by Anonymous over 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Target version:
ruby -v:
trunk
[ruby-core:56478]

Description

When the environment variable CFLAGS does not exist, running the ./configure script outputs this to the Makefile:

# ./configure && grep ^CFLAGS Makefile
...configure output...
CFLAGS = ${cflags} $(ARCH_FLAG)

However, setting the environment variable CFLAGS to anything (even the empty string) causes ${cflags} to not be included in the CFLAGS written to the Makefile:

# CFLAGS= ./configure && grep ^CFLAGS Makefile
...configure output...
CFLAGS =  $(ARCH_FLAG)

The same happens with LDFLAGS. I believe this is what is breaking trunk compilation for both myself and spastorino in #8759.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0