Project

General

Profile

ActionsLike0

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 over 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.

Updated by nobu (Nobuyoshi Nakada) over 11 years ago

  • Status changed from Open to Rejected
  • Priority changed from 5 to 3

Updated by tmm1 (Aman Karmani) over 11 years ago

  • Status changed from Rejected to Open
  • Assignee set to nobu (Nobuyoshi Nakada)
  • Priority changed from 3 to Normal
  • Target version set to 2.1.0

Updated by nobu (Nobuyoshi Nakada) over 11 years ago

  • Status changed from Open to Rejected
ActionsLike0

Also available in: Atom PDF