66
« Last post by Dave Yeo on February 20, 2026, 01:36:23 am »
OK, got pissed off chasing a libiconv package so downloaded the source and installed it in /usr/local, remembered to run sudo ldconfig and,
dave@dave-ThinkCentre-M910s:~$ i686-pc-os2-emx-g++ --version
i686-pc-os2-emx-g++ (GCC) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Have to play with it later and look up cross-compiling.
Edit: Now I get,
/home/dave/opt/os2emx/bin/../libexec/gcc/i686-pc-os2-emx/9/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
Looks like libmpfr.so.4 is old and no package available. Have to build version 3 by the looks of it. Current is 4.2.2
Edit2: Ok, built a simple C program using configure and it runs on OS/2, both with -Zomf and without.
Test G++ next.
BTW, used,
export CC=i686-pc-os2-emx-gcc
./configure --host=i686-pc-os2-emx --build=x86_64-linux-gnu LDFLAGS=-Zomf
Edit3: g++ also worked fine.