[MeeGo-dev] Behavior of ld in MeeGo (was: Re: Linking of X libraries in meego)

2010-11-26 Thread Pertti Kellomäki
I figured out what was causing the linking problems. It turns out that doing an osc build sets the environment variable LD_AS_NEEDED, which causes the linker ot behave as if --as-needed were given in the command line. We are using cmake, and give the X libraries using the following line in

Re: [MeeGo-dev] Behavior of ld in MeeGo (was: Re: Linking of X libraries in meego)

2010-11-26 Thread Thiago Macieira
Em Sexta-feira, 26 de Novembro de 2010, às 09:38:52, Pertti Kellomäki escreveu: /usr/bin/gcc -Wall -m32 -lX11 -lXtst -lXi CMakeFiles/fala_pixelchanged.dir/main.c.o -o fala_pixelchanged The reason for the linker complaints is that the X libraries precede main.c.o in the command line.

Re: [MeeGo-dev] Behavior of ld in MeeGo (was: Re: Linking of X libraries in meego)

2010-11-26 Thread Gabriel M. Beddingfield
On Friday, November 26, 2010 02:38:52 am Pertti Kellomäki wrote: line. We are using cmake, and give the X libraries using the following line in CMakeLists.txt: set(CMAKE_EXE_LINKER_FLAGS -lX11 -lXtst -lXi) This produces the offending command line in Makefile: /usr/bin/gcc