Skip to content

riscos-crossdev 1.11.2

Choose a tag to compare

@adyoull adyoull released this 10 Nov 18:45
· 22 commits to main since this release

riscos-crossdev 1.11.2: shared libraries with C++ static objects

The toolchain is 1.11's (UnixLib 5.0.3.7): toolchain/PREBUILT still
names riscos-crossdev-toolchain-1.11-x86_64-linux.tar.xz from the
1.11 release.
This release takes in riscos-mesa's experience of building its devkit's
libraries as shared libraries.

  • RISCOS_SO_LDFLAGS is now -shared -nodefaultlibs (it was
    -shared -nostdlib).

    • -nostdlib also left out the start files, and with them
      __dso_handle, so a C++ library with static objects didn't link.
    • Tested on RISC OS on Linux: such a library's objects are built when
      it loads, and destroyed in order when the program exits.
    • make check now builds one.
    • Libraries still have no UnixLib, libstdc++ or libgcc of their own.
  • docs/MIXED.md
    adds:

    • what to do with archives that hold the same object twice;
    • --gc-sections for libraries built from big archives;
    • why a program using a shared SDL needs -ldl;
    • stripping the libraries you ship;
    • riscos-mesa's coming shared devkit libraries (!MesaLibs).
  • To update: check out v1.11.2. If you already have 1.11's toolchain
    installed, nothing else changes. With Docker, use
    ghcr.io/adyoull/riscos-crossdev:1.11.2.

  • If you build mixed-program libraries with your own flags, change
    -nostdlib to -nodefaultlibs there too.

Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.