Project

General

Profile

Actions

Backport #7120

closed

[[Ruby 1.9:]] ${cflags} missing from CFLAGS

Added by mpapis (Michal Papis) over 11 years ago. Updated over 11 years ago.

Status:
Closed
[ruby-core:47868]

Description

=begin
Because ruby does not allow multiple --with-opt-dir= - so RVM uses CFLAGS=/LDFLAGS= to not block --with-opt-dir= from users.

This lead to an issue where ruby detected flags are not set if CFLAGS is provided earlier.

I did prepare a patch to persist the detected flags in CFLAGS: https://gist.github.com/3854178.

There is no way for user to detect the flags by himself, user would have to reproduce the whole ruby detection process to make it working.

The patch puts ${cflags} before the given CFLAGS, so users can still overwrite the auto-detected values as the last flag is relevant.

There is an initial report if more context is needed: https://github.com/wayneeseguin/rvm/issues/1203
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0