I only thought it might be related to this bug because I sow another post with compilation error referred to this thread (I'm not a very technical person btw).
I only tried this because I wanted to play pas hasty alliance

))
I was thinking of submitting a PR to the port maintainer of wesnoth, thinking that he could merge the fix. I first tried to find it on my own on savannah - but cvsweb was a bit confusing for me (port maintainer needs patches in a unified diff file format, whatever that means).
Anyway, autogen works fine, configure detects everything correctly (I have recent version of sdl_* stuff), but after ~5 minutes into build time memory use of the cc process suddenly jumps to ~125-135 Mb! Here is the last output before I pressed ctrl-c
- Code: Select all
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/SDL11 -I/usr/local/
include -D_REENTRANT -D_THREAD_SAFE -DWESNOTH_PATH=\"/usr/local/share/wesnoth\"
-g -O2 -fno-omit-frame-pointer -MT font.o -MD -MP -MF ".deps/font.Tpo" -c -o fo
nt.o `test -f 'font.cpp' || echo './'`font.cpp; then mv -f ".deps/font.Tpo" ".d
eps/font.Po"; else rm -f ".deps/font.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/SDL11 -I/usr/local/
include -D_REENTRANT -D_THREAD_SAFE -DWESNOTH_PATH=\"/usr/local/share/wesnoth\"
-g -O2 -fno-omit-frame-pointer -MT game.o -MD -MP -MF ".deps/game.Tpo" -c -o ga
me.o `test -f 'game.cpp' || echo './'`game.cpp; then mv -f ".deps/game.Tpo" ".d
eps/game.Po"; else rm -f ".deps/game.Tpo"; exit 1; fi
In file included from show_dialog.hpp:21,
from dialogs.hpp:19,
from game.cpp:21:
halo.hpp:48:7: warning: no newline at end of file
^C
-bash-2.05b#
I put compiler flags back, but I tried every combination with the same result.
I'm not that impatient btw - I was just curious if I can install cvs version - and thanks for your kind reply

ps>
@ziberpunk - yeah, that's what I meant. You only have to define CXXFLAGS if you have different settings there. Otherwise, the values for CFLAGS are passed to cc by default on fbsd... that's how it looks like in my make.conf:
CPUTYPE=athlon-xp
CFLAGS= -O2 -pipe
COPTFLAGS= -O2 -pipe
This is equivalent of having a CXXFLAGS= -O2 -pipe there as well (no need to define unless you want different flags). (COPTFLAGS is for kernel build).