Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 08cb83213e902bbc6e6b7cd3bce60c005abbe496
Ticket: 1163896fffffffffffffffffffffffffffffffff
dynamic loading error on LynxOS
User & Date: kennykb on 2005-03-16 00:44:54
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    
    Looking at tcl.m4, it appears that nobody has
    attempted a LynxOS port. 
    
    The [case] command that begins around line 890 of tcl.m4
    is the place where the options that control dynamic loading
    get set.  What needs to be added is a branch for
    LynxOS (or whatever 'uname -s' calls it) and code to
    set the flags:
    
    SHLIB_CFLAGS = Any extra compiler flags needed when building
    code to go in shared libraries (-fPIC, for instance)
    
    SHLIB_LD = The command to link a shared library (often ${CC}
    -shared)
    
    SHLIB_SUFFIX = The suffix for a shared library (.so for
    instance)
    
    SHLIB_LD_LIBS = The libraries to include when linking a
    shared library.
    
    DL_OBJS = Usually 'tclLoadDl.o' (use dlopen to load shared
    libraries).  HPUX, AIX, and Windows all do it differently, I
    hope we don't need to invent one for LynxOS
    
    DL_LIBS = The library (libraries) needed in the base
    executable for it to find 'dlopen'.
    
    CC_SEARCH_FLAGS, LD_SEARCH_FLAGS = Flags needed to adjust
    the runtime search path for shared libraries.  Often,
    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    and
    LD_SEARCH_FLAGS='-rpath,${LIB_RUNTIME_DIR}' 
    
    If you come up with a combination that works, I'll be happy
    to update the build system.  I don't have access to a LynxOS
    system for testing, so I'll have to take your patch on faith. :)
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. username: "kennykb"