[uClibc]directfb pthread linking problems

Scott A McConnell samcconn at cotw.com
Thu May 30 15:49:16 UTC 2002


Erik Andersen wrote:
> 
> On Sun May 26, 2002 at 12:38:57PM +1000, Alex Song wrote:
> > At 05:49 AM 05/26/2002, Erik Andersen wrote:
> > >On Sun May 26, 2002 at 01:53:18AM +1000, Alex Song wrote:
> > >> do you have any idea what this might be caused by ?
> > >
> > >Lets step back a bit farther in the process.  How are you
> > >compiling directfb?  Perhaps that will give us a clue,
> >
> > i set the PATH to point to uclibc's wrappers then i run autogen.sh which
> > comes with directfb with --disable-avifile --disable-freetype. autogen.sh
> > generates a configure script and then runs that which makes all the
> > Makefiles. then i just simply run make. standard procedure really.
> 
> Hmm.  This is how I use configure stuff...  Assuming I have a
> STAGING_DIR directory where includes and libraries are being
> installed, I do something like this:
> 
>     cd <package_directory>
>     export PATH=$(STAGING_DIR)/usr/bin:$PATH
>     ./configure CC=i386-uclibc-gcc --prefix=$(STAGING_DIR)
> 
> By using the $(ARCH)-uclibc-gcc compiler, we ensure that when
> things like 'ld' get called we can be sure that it will actually
> call 'i386-uclibc-ld' and not the system '/usr/bin/ld' (which
> would link things vs glibc).

Beware DirectFB is not very Cross compiler friendly $(STAGING_DIR) will
get hardcoded into the libraries and executables.

STAGING_DIR=/DFB/usr/local

The above full path will get inserted  rather than the desired
/usr/local

Scott



More information about the uClibc mailing list