Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7ac0293105674a00a415b262e445bd9e63e51275
Ticket: 489370ffffffffffffffffffffffffffffffffff
Make --libdir & --exec_prefix consistent
User & Date: r11314 on 2001-12-05 13:47:01
Changes

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I'm using the following configure line for example:
    
    ./configure  \
    --prefix=/home/peter_s/sw/tcl/tcl8.3.4 \
    --libdir=/home/peter_s/sw/tcl/tcl8.3.4/testlibdir \
    --enable-gcc
    
    The configure script allows the option --libdir where it actually installs the tcl libraries and it does 
    it, but fails to record this path correctly in the tclConfig.sh.
    
    # String to pass to linker to pick up the Tcl library from its
    # installed directory.
    TCL_LIB_SPEC='-L/home/peter_s/sw/tcl/tcl8.3.4/lib -ltcl8.3${TCL_DBGX}'
    
    The appropriate line in the configure{.in} is:
        TCL_LIB_SPEC="-L${exec_prefix}/lib ${TCL_LIB_FLAG}"
    
    $libdir will be defaulted to ${exec_prefix}/lib if no --libdir switch is given.
    But, if it is given the script ignores it for all that settings and uses the predefined value instead.
    
    Expected Behavior:
    I think it should be like:
        TCL_LIB_SPEC="-L${libdir} ${TCL_LIB_FLAG}"
    
    There are actually several such references in the script.
    
    
    I originally recognized this behavior with TCL8.3.3, but checked that this is the same with up to 
    TCL8.4a3
    
    Just as a background:
    I'm building PostgreSQL and it uses the info in tclConfig.sh to build its TCL depended parts, like 
    probably other programs as well which integrate into the TCL build. 
    The build fails if the library is not found at the recorded default path.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "r11314"
  9. subsystem changed to: "53. Configuration and Build Tools"
  10. title changed to: "Make --libdir & --exec_prefix consistent"
  11. type changed to: "Bug"