Yes, it is gcc4 build of course

Generally I followed "porting tips".
I have one build problem: a dependence on libm (is it really needed I wonder?) I simply removed it from modules/configure.in
And there was runtime problem with loading modules. Haiku returns really strange Dl_info from ldaddr (it is probably bug), so I add one check to loadlib.h
[code language="c"]#ifndef TARGET_BEOS
// On Haiku OS dladdr returns empty strings in info structure
// so condition below is always false
if ( strcmp( ptr, handle->fname ) )
{
__dliberr = "Symbol not found (2)." ;
return NULL;
}
#endif [/code]
Here is my build:
download (~400k)Here is modified files, build scripts, required 3d-party packages and small "readme":
download (~12M)I have not checked the build deeply, but it runs packman and galaxian with no visible problems.