I've managed to compile the Wine 4.10 runtime bits on Solaris 2, but i keep running into a problem with the native linker (and GNU LD/GOLD) where winebuild/winegcc fails to remove the import symbols from the wrapped PE-in-ELF shared object:
../../tools/winegcc/winegcc -o acledit.dll.so -B../../tools/winebuild -fno-PIC -fasynchronous-unwind-tables \ -shared ../../../dlls/acledit/acledit.spec -mno-cygwin main.o -lsocket -lnsl -mimpure-text -L/usr/local/lib -Wl,-R/usr/local/lib Undefined first referenced symbol in file __wine$func$msvcrt$1016$ftell ../../dlls/msvcrt/libmsvcrt.a(msvcrt.8sjEgq.o) __wine$func$msvcrt$1024$getenv ../../dlls/msvcrt/libmsvcrt.a(msvcrt.k9b5ph.o) __wine$func$msvcrt$1060$localtime ../../dlls/msvcrt/libmsvcrt.a(msvcrt.4A4GdP.o) __wine$func$msvcrt$1019$fwrite ../../dlls/msvcrt/libmsvcrt.a(msvcrt.kAOzVa.o) __wine$func$msvcrt$1007$fread ../../dlls/msvcrt/libmsvcrt.a(msvcrt.socBBA.o) (and so forth)
I'm at a loss to describe any extra information, and I don't think using GNU LD or GOLD fixes this (might have to remove any target-specific code in winebuild to fall through to Linux/GNU LD behaviour to check)
Thanks R