[Mono-list] compiling on FreeBSD

Garrett Rooney rooneg@electricjellyfish.net
Sun, 12 Aug 2001 23:08:47 -0400


On Sun, Aug 12, 2001 at 08:38:57PM -0400, Garrett Rooney wrote:
> On Sun, Aug 12, 2001 at 08:17:14PM -0400, Garrett Rooney wrote:
>  
> > 1) add GLIB_CFLAGS = `$(GLIB_CONFIG) --cflags` and GLIB_LIBS=`$(GLIB_CONFIG)
> > --libs` in the Makefiles.  i imagine we should be making our automake setup do
> > this anyway, since that's what glib_config exists for, but my automake foo is
> > basically nonexistent.  if someone could point me in the proper direction, i'd
> > be happy to make this change, i just don't know where to start.
> 
> well, i started looking around.  if i define GLIB_CFLAGS to be $(GLIB_CONFIG)
> --cflags in Makefile.am, i can get everything to compile, but it fails to link
> because it can't find the glib library.  i would assume i would need to define
> GLIB_LIBS in the same way, and then everything would work, but if i do that,
> automake starts bitching at me for putting linker flags such as --libs in the 
> _LDDFLAGS section.  this one has me kind of stumped...
> 
> any help?

well, after much messing around and hand-hacking makefiles, i've been able to
get right up to compiling mono-int on FreeBSD, and it fails to link.  it's not
finding isordered() isless() isgreater() and islessequal().  what library are
these supposed to be in?  something in glibc that isn't in the BSD libc?

anyway, that seems to be the last problem.  everything else can be worked
around by adding the appropriate uses of glib-config and gtk-config. (also, i
had to hand hack a -I../../libffi/include to get it to pick up ffi.h)  i still
don't know what the correct way to deal with these things is, but at least it
compiles.  no promisses on wether it runs or not though...

-- 
garrett rooney                     Unix was not designed to stop you from 
rooneg@electricjellyfish.net       doing stupid things, because that would  
http://electricjellyfish.net/      stop you from doing clever things.