In my current project autoconf and libtool are used to generate the build system. The code consists of two programs, a library and the utility implementing the library. Although the library is intended as shared object I have not enforced this anywhere. When compiling the code I receive the following warning:
1 2 3 4 5
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o util util.o
../src/libcmod.la -L/usr/local/lib -lrt -lm
*** Warning: Linking the executable util against the loadable module
*** libcmod.so is not portable!
However, it does seems to be working the way I expected. Both the libtool wrapper and the compiled util are working fine. I can't find the issue that triggers libtool to display this warning. In general I try to write warning free code, but I'm stuck at this one.