it works. yay!!!
ok, here's what i needed to do. first of all, set the following environmental
variables:
CC=/usr/bin/cc
CXX=/usr/bin/CC
CXXFLAGS='-LANG:std'
or for more optimization (what i used on my R10K Octane):
CFLAGS='-O2 -OPT:Olimit=0 -mips4'
CXXFLAGS='-LANG:std -O2 -OPT:Olimit=0 -mips4'
the next step is to remove '-Wall -W -pedantic' from CXXFLAGS in src/Makefile
and util/Makefile, unless someone knows how to get configure to not put those
in there in the first place.
after that, apply the included patch, make, make install, enjoy.
that's all there is to it!!
-brian
--
"I mean Twinkies are good but getting shot really hurts."
-- http://www.thisisatastyburger.com/ --
Only in blackbox-0.65.0beta3-MIPSpro/src: Makefile
diff -pru blackbox-0.65.0beta3/src/Util.cc blackbox-0.65.0beta3-MIPSpro/src/Util.cc
--- blackbox-0.65.0beta3/src/Util.cc Thu Jul 18 13:16:54 2002
+++ blackbox-0.65.0beta3-MIPSpro/src/Util.cc Sun Jul 21 22:29:17 2002
@@ -54,6 +54,8 @@ extern "C" {
#include <assert.h>
+#include <math.h>
+
#include <algorithm>
#include "Util.hh"
@@ -239,7 +241,7 @@ string itostring(unsigned long i) {
string itostring(long i) {
- std::string tmp = itostring(static_cast<unsigned long>(std::abs(i)));
+ std::string tmp = itostring(static_cast<unsigned long>(abs(i)));
if (i < 0)
tmp.insert(tmp.begin(), '-');
return tmp;
diff -pru blackbox-0.65.0beta3/src/Window.cc blackbox-0.65.0beta3-MIPSpro/src/Window.cc
--- blackbox-0.65.0beta3/src/Window.cc Thu Jul 18 15:05:22 2002
+++ blackbox-0.65.0beta3-MIPSpro/src/Window.cc Sun Jul 21 22:30:45 2002
@@ -40,7 +40,9 @@ extern "C" {
#endif // DEBUG
}
-#include <cstdlib>
+// #include <cstdlib>
+
+#include <math.h>
#include "i18n.hh"
#include "blackbox.hh"
@@ -2692,10 +2694,10 @@ void BlackboxWindow::motionNotifyEvent(c
wtop = dy,
wbottom = dy + frame.rect.height() - 1;
- int dleft = std::abs(wleft - srect.left()),
- dright = std::abs(wright - srect.right()),
- dtop = std::abs(wtop - srect.top()),
- dbottom = std::abs(wbottom - srect.bottom());
+ int dleft = abs(wleft - srect.left()),
+ dright = abs(wright - srect.right()),
+ dtop = abs(wtop - srect.top()),
+ dbottom = abs(wbottom - srect.bottom());
// snap left?
if (dleft < snap_distance && dleft <= dright)
@@ -2714,10 +2716,10 @@ void BlackboxWindow::motionNotifyEvent(c
if (! screen->doFullMax()) {
srect = screen->getRect(); // now get the full screen
- dleft = std::abs(wleft - srect.left()),
- dright = std::abs(wright - srect.right()),
- dtop = std::abs(wtop - srect.top()),
- dbottom = std::abs(wbottom - srect.bottom());
+ dleft = abs(wleft - srect.left()),
+ dright = abs(wright - srect.right()),
+ dtop = abs(wtop - srect.top()),
+ dbottom = abs(wbottom - srect.bottom());
// snap left?
if (dleft < snap_distance && dleft <= dright)
Only in blackbox-0.65.0beta3-MIPSpro/src: ii_files