Project

General

Profile

Actions

Bug #6119

closed

Usage of CPPFLAGS during configure result in duplicated values for RbConfig CPPFLAGS information

Added by luislavena (Luis Lavena) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-core:43097]

Description

When attempted to use FD_SETSIZE preprocesor definition under Windows to increase number of file descriptions, found that configure script replicated it.

A simple configure invoke with `sh configure --enable-shared CPPFLAGS='-DFD_SETSIZE=32767' result in the following value returned by RbConfig:

irb(main):001:0> require "rbconfig"
=> false
irb(main):002:0> RbConfig::CONFIG["CPPFLAGS"]
=> "-DFD_SETSIZE=32767  -DFD_SETSIZE=32767"

Above is result from Ruby 1.9.3, and for ruby-trunk:

irb(main):001:0> require "rbconfig"
=> false
irb(main):002:0> RbConfig::CONFIG["CPPFLAGS"]
=> "-DFD_SETSIZE=32767 -D_WIN32_WINNT=0x0501 -DFD_SETSIZE=32767"

I'm not very versed on configure.in, so can't find the culprit of this duplication, sorry about that.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0