multiple definition of `__i686.get_pc_thunk.bx'

Andriy Gapon avg at freebsd.org
Mon Feb 28 08:29:18 UTC 2011


on 28/02/2011 00:41 Stephen Montgomery-Smith said the following:
> Stephen Montgomery-Smith wrote:
>> I am the maintainer of the port vis5d+.  I just got this email (copied
>> below) saying that vis5d+ isn't building right now.
> 
> The problem seems to be with libtool.  If I run a command like:
> 
> libtool -mode=link g++45 stuff stuff
> 
> then libtool does NOT use g++45, but it uses c++ instead.  If I hand edit
> /usr/local/bin/libtool and replace c++ by g++45, this fixes the problem I
> describe below.

It looks like libtool (foolishly?) records whatever CC/CXX is set when libtool
itself is built.

-- 
Andriy Gapon


More information about the freebsd-ports mailing list