There is an very little pb with link.T , on unix and other platform , it find link.T in libretro/link.T not link.T (as we are inside libretro folder already)
LDFLAGS += -shared -Wl,–version-script=libretro/link.T
sould be LDFLAGS += -shared -Wl,–version-script=link.T
the other major pb I found is your dosio.c/h implementation that use filestream and retro dirent/stat,
as it empty the hdi file we pass at launch.
But if I replace by the one found in X11 folder (using fopen/fread/ftell ect…) it work fine ! hdi load and doesn’t empty my hdi file at end. (I just define the #define G_DIR_SEPARATOR “\” and remove G_BEGIN/END_DECLS as it based on glib)
it’s a quick hack to test it ,BTW dosio implementation found in sdl2 folder should be a better solution as it handle unix/win32/wutf8 platform.
BTW good job , with your effort we will finally got an standalone PC98 core !