dosbox breaks with MIPSpro, works with gcc
#10
RE: dosbox breaks with MIPSpro, works with gcc
So "the coming week" actually took a bit longer than that, because i wanted to have both mips3 and mips4 static and dynamic build ready and a wish to design a nice Icon for the binary to go in 'Applications' Icon Catalog.

So i've placed the neko_dosbox tardist in my dual-mips3-mips4 nekoware directory. It is for both mips3 and mips4 and has two binaries: one dynamically linked with nekoware deps from the same directory and a semi-static one with only IRIX deps, so you don't have to go through the hassle with collecting all the nekoware deps.

A screenshot of DOSBox in action together with the icon:
[Image: dosbox.png]

The trick in making a semi-static binary is to relink with a command where only certain libraries have to be statically linked. This can be done win MIPSPro with -B static and -B dynamic. In the case of DOSBox it was:
Code:
CC -O2 -mips4 -n32 -OPT:Olimit=0 -L/usr/nekoware/lib -o dosbox-static dosbox.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a hardware/mame/libmame.a hardware/serialport/libserial.a libs/gui_tk/libgui_tk.a -B static -lSDL_sound -lvorbisfile -lvorbis -logg -lFLAC -lspeex -lmikmod -lSDL -liconv -lpng -lz -lSDL_net -B dynamic -lpthread -lX11 -lXext -lgen -lm -laudio -lGL

As you can see, only the nekoware libraries are preceded by a -B static and the normal IRIX libraries preceded by -B dynamic

This information, as well as the patch file innards are in the neko_dosbox.opt.relnotes and neko_dosbox.opt.patches subsystems.
Let me know what you think of it.
dexter1
Administrator

Trade Count: (1)
Posts: 297
Threads: 17
Joined: May 2018
Location: The Netherlands
Find Reply
06-16-2019, 06:08 PM


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)