Repository navigation
riscos-crossdev 1.11.2
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_LDFLAGSis now-shared -nodefaultlibs(it was
-shared -nostdlib).-nostdlibalso 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 checknow 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-sectionsfor 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
-nostdlibto-nodefaultlibsthere 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.