Skip to content
Tcl Source Code History Of Ticket 1586861fffffffff
Login

History Of Ticket 1586861fffffffff

Artifacts Associated With Ticket 1586861fffffffff

  1. Ticket change [d15f8a49b1] (rid 113334) by eponym on 2006-10-29 21:39:07:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4.14"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "eponym"
    10. subsystem initialized to: "53. Configuration and Build Tools"
    11. title initialized to: "CPPFLAGS is not properly supported"
    12. type initialized to: "Bug"
  2. Ticket change [f0152cb4a4] (rid 109115) by dkf on 2006-10-30 21:47:58:

    1. assignee changed to: "dgp"
  3. Ticket change [cc0dacc486] (rid 95624) by jenglish on 2006-10-30 22:11:03:

    1. assignee changed to: "jenglish"
  4. Ticket change [498e448a7a] (rid 100073) by mmaslano on 2007-01-02 23:29:28:

    1. icomment:
      Logged In: YES 
      user_id=1580598
      Originator: NO
      
      I use this patch. Is it the solution or the problem remain?
      
      --- tcl-8.4.13/tcl8.4.13/unix/tcl.m4.6-cflags   2006-07-20 15:11:19.000000000 -0400                                           
      +++ tcl-8.4.13/tcl8.4.13/unix/tcl.m4    2006-07-20 15:12:40.000000000 -0400                                                   
      @@ -1340,7 +1340,7 @@                                                                                                         
                  #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"                                   
                                                                                                                                    
                  if test "$have_dl" = yes; then                                                                                    
      -               SHLIB_LD='${CC} -shared -Wl,-soname,${@}'                                                                     
      +               SHLIB_LD='${CC} ${CFLAGS} -shared -Wl,-soname,${@}'                                                           
                      DL_OBJS="tclLoadDl.o"                                                                                         
                      DL_LIBS="-ldl"                                                                                                
                      LDFLAGS="$LDFLAGS -Wl,--export-dynamic"                                                                       
      --- tcl-8.4.13/tk8.4.13/unix/tcl.m4.6-cflags    2006-04-19 08:29:38.000000000 -0400                                           
      +++ tcl-8.4.13/tk8.4.13/unix/tcl.m4     2006-07-20 15:13:04.000000000 -0400                                                   
      @@ -1340,7 +1340,7 @@                                                                                                         
                  #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"                                   
                                                                                                                                    
                  if test "$have_dl" = yes; then                                                                                    
      -               SHLIB_LD="${CC} -shared"                                                                                      
      +               SHLIB_LD="${CC} ${CFLAGS} -shared"                                                                            
                      DL_OBJS="tclLoadDl.o"                                                                                         
                      DL_LIBS="-ldl"                                                                                                
                      LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 
      
      
    2. login: "mmaslano"
    3. mimetype: "text/plain"
    4. username: "mmaslano"
  5. Ticket change [f2250603a7] (rid 109489) by das on 2007-01-19 08:15:30:

    1. assignee changed to: "das"
    2. closedate changed to: "2007-01-19T01:15:30"
    3. closer changed to: "das"
    4. icomment:
      Logged In: YES 
      user_id=90580
      Originator: NO
      
      fixed in HEAD, core-8-4-branch and tclconfig
      if set,  the CPPFLAGS env var is now included in CFLAGS by tcl.m4
      
      
    5. login: "das"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "das"