Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d15f8a49b1889c6a66fae17a9e8f61b2bb3f63dc
Ticket: 1586861fffffffffffffffffffffffffffffffff
CPPFLAGS is not properly supported
User & Date: eponym on 2006-10-29 21:39:07
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The Tcl configure script, when it processes a number of
    actions during the configure process, uses CPPFLAGS to
    test the compiler.  But when it comes to the actual
    build process, this environment variable is totally
    ignored.
    
    The reason for needing this is to better support a
    general application environment, and the integration of
    Tcl libraries into that environment.  In these builds,
    a clean separation is desired between CFLAGS (used only
    for the C compiler), CXXFLAGS (used only for the C++
    compiler), and CPPFLAGS (for settings in common between
    the C and C++ compilers).
    
    As an example of how this failure causes problems, on
    the Solaris platform, the -D_POSIX_C_SOURCE=200112L
    flag should be set in CFLAGS to conform to the rest of
    the application build, and -D__EXTENSIONS__ flag should
    be set in CPPFLAGS.  But with this combination of
    environment variables, and -D__EXTENSIONS__ in CPPFLAGS
    being ignored, the compilation of tclUnixChan.c
    fails because certain symbols (such as TIOCMGET) from
    <sys/termios.h> do not get defined.
    
    
  4. foundin changed to: "obsolete: 8.4.14"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "eponym"
  10. subsystem changed to: "53. Configuration and Build Tools"
  11. title changed to: "CPPFLAGS is not properly supported"
  12. type changed to: "Bug"