Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 31c1f78f32d5853a8f1e868f9cd4d9591961010a
Ticket: 2750886fffffffffffffffffffffffffffffffff
incorrect handling of CFLAGS on configure command line
User & Date: marcomaggi on 2009-04-10 21:41:04
Changes

  1. assignee changed to: "stwo"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Configuring Tcl 8.6b1 on a i686-pc-linux-gnu with:
    
        ./configure \
            --prefix="${prefix}"                    \
            --enable-shared                         \
            --enable-man-symlinks                   \
            --enable-man-compression=gzip           \
            --enable-threads                        \
            CFLAGS='-O3 -march=i686 -mtune=i686'
    
    
    fails when "tdbc" is (sub)configured because the "unix/Makefile"
    contains the following:
    
    PKG_CFG_ARGS = CFLAGS="-O3 -march=i686 -mtune=i686" --prefix=/usr/local --enable-shared --disable-static --enable-man-symlinks --enable-man-compression=gzip --enable-threads CFLAGS=-O3 -march=i686 -mtune=i686 
    
    that is CFLAGS is included twice and the second time it is
    spliced without quotes.  Tcl itself is configured and built
    correctly, only "tdbc" configuration fails.
    
    The spliced CFLAGS comes from the line in "configure.in"
    that includes $@.
    
    My opinion is that changing the following line in "configure.in":
    
        eval 'test -n "$'$v'" && PKG_CFG_ARGS="$v=\"$'$v'\" $PKG_CFG_ARGS"'
    
    will NOT work.  AFAICT there is no way to convince
    AC_SUBST to keep quotes.  Why not use AC_CONFIG_SUBDIRS?
    
    
  4. foundin changed to: "obsolete: 8.6b1"
  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: "marcomaggi"
  10. subsystem changed to: "53. Configuration and Build Tools"
  11. title changed to:
    incorrect handling of CFLAGS on configure command line
    
  12. type changed to: "Bug"