Quoting Stephen GALLIMORE:
> Secondly I note you are cross compiling. 0.9.22 introduced
> a new rule to build static libraries which uses $(LD) to
> do a partial link. We have found (cross compiling to SH4)
> that nothing in the configure/automake generated makefiles
> actually sets the LD variable, so it uses the system "ld" rather
> than the cross linker. This of course fails because the object
> types are wrong. We have to manually set LD to the cross linker
> before configure and make to get a working build.
> 
> We did attempt to figure out the autotool magic to solve this,
> but failed miserably, lost in a maze of twisty macros all alike.
> In the end it was easier just to set it manually :-(

Setting CC, LD, AR etc. before calling configure is the way I'm
cross compiling usually. We could add an option like "--with-cross=prefix"
so you can call "./configure --with-cross=mips-linux-" or similar and
all required variables are derived. I think that's how the kernel does it.

-- 
Best regards,
  Denis Oliver Kropp
 
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to