Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-03-23
07:49 • Closed ticket [219277ffff]: Simplification of Makefile plus 3 other changes artifact: eb4d1fbc95 user: hobbs
2001-08-02
08:45 • Ticket [219277ffff]: 2 changes artifact: 6d360a48ae user: hobbs
2001-02-08
22:19 • Ticket [219277ffff]: 1 change artifact: c5f72089d0 user: dkf
2000-10-26
05:09 • New ticket [219277ffff]. artifact: b0506e14d3 user: nobody

Simplification of Makefile

Closed / Out of Date219277ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:09:46
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
dkf Ticket [219277ffff]: 1 change [History diff]2001-02-08 22:19:23
hobbs Ticket [219277ffff]: 2 changes [History diff]2001-08-02 08:45:34
hobbs Closed ticket [219277ffff]. [History diff]2002-03-23 07:49:23
Log in (anonymous is fine) to add a comment.