[Prev][Next][Index][Thread]

Re: linking to Math library with OSKit 20000202



> This is just how ld works.  There are circular dependencies between libkern
> and libfreebsd_c.  libkern references new symbols from the C library that 
> were not referenced (and hence not resolved) the first time freebsd_c was
> scanned.  This can be "fixed" by including -loskit_freebsd_c a second time
> after -loskit_kern.  Adding -loskit_c as you did had the same effect except
Can't you "surround" the libraries with circular references with
--start-group and --end-group? I use this when I have libraries with
circular dependancies. For example
	ld <foo> --start-group -loskit_kern -l oskit_freebsd_c --end-group


References: