• MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    Take a look in gg:os-include, there are several stub-includes there that are activated by a special define you can use at compile-time (-D__MORPHOS_SHAREDLIBS iirc), then you can link with the lib*_shared.a libs (not all the libraries need one though).

    Making shared libraries that depend on static libraries is usually ok as long as they

    1. are fully re-entrant (ie, are not using globals)
    2. don't invoke certain libc functions (I/O, memory, etc)

    If they do you need to wrap those with your own or handle full libnix init yourself (see the nixskeleton library example in the SDK) and use baserel if there are globals (all linked dependencies must also be compiled baserel (and installed into the libb32 subdir) then as well).


    - CISC
  • »08.02.16 - 11:23
    Profile