[Mono-dev] libtool problem cross compiling

Andreas Färber andreas.faerber at web.de
Sat Sep 20 07:09:37 EDT 2008


Am 19.09.2008 um 17:57 schrieb GrahamNewton:

> I am trying to cross compile mono onto another x86 linux  
> distribution and I
> am having a problem with libtool inserting wrong library paths.  An  
> example
> is in mono/metadata where libtool converts the command line
> /bin/sh ../../libtool --tag=CC   --mode=link 586-gcc  -g -O2
> -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused
> -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
> -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs   -o pedump  
> pedump.o
> libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
> ../../libgc/libmonogc.la -pthread
> -L/opt/montavista/pro/devkit/x86/586/target/usr/lib -lgthread-2.0 - 
> lglib-2.0
> -lm -ldl -lpthread -lm
> to
> 586-gcc -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g  
> -Wall
> -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict- 
> prototypes
> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
> -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -o pedump  
> pedump.o
> -pthread  ./.libs/libmonoruntime.a ../io-layer/.libs/libwapi.a
> ../utils/.libs/libmonoutils.a ../../libgc/.libs/libmonogc.a
> -L/opt/montavista/pro/devkit/x86/586/target/usr/lib
> /usr/lib/libgthread-2.0.so /usr/lib/libglib-2.0.so -ldl -lpthread -lm
> note the /usr/lib in front of libglib2.0 and libgthread-2.0 .

This has nothing to do with libtool. Make sure to set up appropriate  
paths for the pkg-config tool. It appears to be finding your  
host's .pc files. See `./configure -h` for appropriate variables.


More information about the Mono-devel-list mailing list