If you are using a compiler, like gcc45, in a port, then libtool doesn't always work properly. Fix: Here is one suggestion. It causes libtool to respect $CC and $CXX. But you would have to do this for the other tools used for linking. This will add a new file called patch-configure. How-To-Repeat: Try to build the vis5d+ port. You will get an error like this multiple definition of `__i686.get_pc_thunk.bx
Responsible Changed From-To: freebsd-ports-bugs->ade can u please take a look?
Responsible Changed From-To: ade->autotools Reassign appropriately.
Thank you for this patch. It helped me. This also fixes a situation when compiling ports with ccache [1] where libtool thinks that ccache is the system compiler and proceeds to conflict with other ports that are trying to use ccache, such as security/libgpg-error [1] http://forums.freebsd.org/showthread.php?t=3908 Regards, Bryan Drewery
I tested this patch further. It at least breaks compiling print/freetype2 by causing the linking stage to use "/usr/ports/print/freetype2/work/gnome-libtool --mode=compile cc ..." instead of "cc ..." directly without this patch applied to libtool. Regards, Bryan Drewery
science/libctl is another case of this.
Also see http://lists.freebsd.org/pipermail/freebsd-ports/2011-March/066154.html
Is this PR still relevant?
We used to build ports with /usr/local/bin/libtool which uses the compiler/linker used to build devel/libtool. Now we build ports with libtool generated from their configure script so the correct compiler/linker is used.