Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b0506e14d3bd5657095e052dc4e642e474f8592e
Ticket: 219277ffffffffffffffffffffffffffffffffff
Simplification of Makefile
User & Date: nobody on 2000-10-26 05:09:46
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1812 RFE
    Version: 8.1b3
    SubmitDate: '1999-04-14'
    LastModified: '2000-04-02'
    Severity: MED
    Status: UnAssn
    Submitter: pat
    ChangedBy: hobbs
    OS: Linux-Red Hat
    OSVersion: 4.2
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Jan Nijtmans
    
    Comments:
    On systems with a.out dynamical loading (e.g. Ultrix), it makes
        a difference if the ojects are included separately, as an
        archive, or with the "-l" flag. This patch takes care of
        that difference, making sure that the stub archive doesn't
        need to be present at run-time.
    
    DesiredBehavior:
    In the UNIX Makefile, all objects in the Stub library are
        also included in the static library and also linked in
        the shared library. This is a general rule, which is
        not taken advantage of, currently.
    
        The following modifications of configure.in and
        Makefile.in simplify the Makefile such that all
        objects of libtclstub8.1.a are automatically
        included in libtcl8.1.a and libtcl8.1.so, without
        the need to be specified again. Part of the
        TEA-summit is handling simplification of the
        Makefile, so this could be the first small
        step.
    
        After this enhancement is evaluated by Scriptics,
        I will submit the same enhancement for Tk as well.
    
    Patch:
    *** unix/Makefile.in.origWed Apr 14 19:39:44 1999
    --- unix/Makefile.inWed Apr 14 19:42:22 1999
    ***************
    *** 270,280 ****
      tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o  tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o  tclResolve.o tclResult.o tclScan.o tclStringObj.o tclThread.o  ! tclStubInit.o tclStubLib.o tclTimer.o tclUtf.o tclUtil.o tclVar.o
    
      STUB_LIB_OBJS = tclStubLib.o ${COMPAT_OBJS}
    
    ! OBJS = ${GENERIC_OBJS} ${UNIX_OBJS} ${NOTIFY_OBJS} ${COMPAT_OBJS} @DL_OBJS@
    
      TCL_DECLS =  $(GENERIC_DIR)/tcl.decls  --- 270,280 ----
      tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o  tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o  tclResolve.o tclResult.o tclScan.o tclStringObj.o tclThread.o  ! tclStubInit.o tclTimer.o tclUtf.o tclUtil.o tclVar.o
    
      STUB_LIB_OBJS = tclStubLib.o ${COMPAT_OBJS}
    
    ! OBJS = ${GENERIC_OBJS} ${UNIX_OBJS} ${NOTIFY_OBJS} @DL_OBJS@
    
      TCL_DECLS =  $(GENERIC_DIR)/tcl.decls  *** unix/configure.in.origWed Apr 14 19:36:26 1999
    --- unix/configure.inWed Apr 14 20:09:44 1999
    ***************
    *** 1325,1333 ****
          TCL_LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS}"
          eval "TCL_LIB_FILE=libtcl${TCL_SHARED_LIB_SUFFIX}"
          if test "x$DL_OBJS" = "xtclLoadAout.o"; then
    ! MAKE_LIB="ar cr \${TCL_LIB_FILE} \${OBJS}"
          else
    ! MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
      RANLIB=":"
          fi
      else
    --- 1325,1333 ----
          TCL_LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS}"
          eval "TCL_LIB_FILE=libtcl${TCL_SHARED_LIB_SUFFIX}"
          if test "x$DL_OBJS" = "xtclLoadAout.o"; then
    ! MAKE_LIB="ar cr \${TCL_LIB_FILE} \${STUB_LIB_OBJS} \${OBJS}"
          else
    ! MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} \${STUB_LIB_FILE} ${SHLIB_LD_LIBS}"
      RANLIB=":"
          fi
      else
    ***************
    *** 1346,1352 ****
          TCL_SHLIB_CFLAGS=""
          TCL_LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS}"
          eval "TCL_LIB_FILE=libtcl${TCL_UNSHARED_LIB_SUFFIX}"
    !     MAKE_LIB="ar cr \${TCL_LIB_FILE} \${OBJS}"
      fi
    
      # tclConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed
    --- 1346,1352 ----
          TCL_SHLIB_CFLAGS=""
          TCL_LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS}"
          eval "TCL_LIB_FILE=libtcl${TCL_UNSHARED_LIB_SUFFIX}"
    !     MAKE_LIB="ar cr \${TCL_LIB_FILE} \${STUB_LIB_OBJS} \${OBJS}"
      fi
    
      # tclConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed
    
    PatchFiles:
    configure.in Makefile.in
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.1b3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "75. Tutorial"
  10. title changed to: "Simplification of Makefile"
  11. type changed to: "RFE"