unexpected emergence of --whole-archive

2009-03-15 Thread Matěj Týč
Hello, I use autotools libtool to make a library. That library consists of the main shared library file and a set of dynamically loadable modules. Those modules depend on external shared libraries. I have written configure.ac and Makefile.am that are quite complex and some things are generated

Re: unexpected emergence of --whole-archive

2009-03-15 Thread Peter O'Gorman
Matěj Týč wrote: Hello, I use autotools libtool to make a library. That library consists of the main shared library file and a set of dynamically loadable modules. Those modules depend on external shared libraries. I have written configure.ac and Makefile.am that are quite complex and some

Re: unexpected emergence of --whole-archive

2009-03-15 Thread Matěj Týč
/bin/sh ../libtool --tag=CC --mode=link gcc -DNOINLINE -Wextra -g -O0 -module -lpng12 -o png.la -rpath /usr/local/lib/IL png_la-il_png.lo -lm -lz results in: libtool: link: gcc -shared .libs/png_la-il_png.o -lpng12 -lm -lz -Wl,-soname -Wl,png.so.0 -o .libs/png.so.0.0.0 That

Re: unexpected emergence of --whole-archive

2009-03-15 Thread Peter O'Gorman
Matěj Týč wrote: /bin/sh ../libtool --tag=CC --mode=link gcc -DNOINLINE -Wextra -g -O0 -module -ljpeg -o jpeg.la -rpath /usr/local/lib/IL jpeg_la-il_jpeg.lo -lm -lz results in: libtool: link: gcc -shared .libs/jpeg_la-il_jpeg.o -Wl,--whole-archive

Re: unexpected emergence of --whole-archive

2009-03-15 Thread Matěj Týč
In the directory /home/bubla/projects/devil_modular/lib/ you have a libjpeg.la file. This is not the jpeg module that you are creating, it is a different library. libtool finds this when you pass -ljpeg (not sure why, as there is no -L flag for that directory). This libjpeg.la is a libtool