Just my 2 cents for this matter:
gcc can be troublesome at times, so if you're fortunate enough to have the MIPSpro compilers, i usually try them before resorting to GNU. Typical make problems are incorrect environment flags like CC CFLAGS CXX CXXFLAGS, sometimes CPPFLAGS. Setting them to
CC=cc
CXX=c++
CFLAGS="-I/usr/freeware/include -L/usr/freeware/lib"
CXXFLAGS same as for CFLAGS
Also some compiles break on national language support so a --disable-nls will fix that. Check also the LD_LIBRARY_PATH : mine is /usr/local/lib:/usr/freeware/lib:/usr/freeware/lib32
Beware however the tricky pointer arithmetic which is allowed in gcc, but MIPSpro barfs loudly with messages like:
cc-1133 cc: ERROR File = barf.c, Line = 751
Expression must be a modifiable lvalue.
(UINT32*)dst2 += 3;
^
so i changed it into dst2=(UINT32*)dst1 + 3;
That was my trick to compile Xmame
see ya
gcc can be troublesome at times, so if you're fortunate enough to have the MIPSpro compilers, i usually try them before resorting to GNU. Typical make problems are incorrect environment flags like CC CFLAGS CXX CXXFLAGS, sometimes CPPFLAGS. Setting them to
CC=cc
CXX=c++
CFLAGS="-I/usr/freeware/include -L/usr/freeware/lib"
CXXFLAGS same as for CFLAGS
Also some compiles break on national language support so a --disable-nls will fix that. Check also the LD_LIBRARY_PATH : mine is /usr/local/lib:/usr/freeware/lib:/usr/freeware/lib32
Beware however the tricky pointer arithmetic which is allowed in gcc, but MIPSpro barfs loudly with messages like:
cc-1133 cc: ERROR File = barf.c, Line = 751
Expression must be a modifiable lvalue.
(UINT32*)dst2 += 3;
^
so i changed it into dst2=(UINT32*)dst1 + 3;
That was my trick to compile Xmame
see ya