I am attempting to recompile code that was written using GNU tools, including autotools. In the makefiles, I make a lot of use of so-called convenience libraries, or local static libraries that are only used as compilation stages, and which are not installed. This is a fairly common practice with autotools, but doing so leads to unresolved references at link time when -ipo is specified on the command line. If I don't use -ipo, everything is fine. The problem only occurs with -ipo.
Is there an easy workaround that does not involve removing the convenience libraries?