Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 498e448a7a0ae70388071a0cf1205f3fc456fbe8
Ticket: 1586861fffffffffffffffffffffffffffffffff
CPPFLAGS is not properly supported
User & Date: mmaslano on 2007-01-02 23:29:28
Changes

  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"