Subject: tiff and C++
To: None <>
From: John R. Shannon <>
List: tech-pkg
Date: 01/06/2005 05:11:11
The package graphics/tiff has a C++ mode. While building with gcc 3.4.3, I ran 
into a linking problem caused by C applications (e.g., fax2ps) being linked 
against libstdc++ with ld instead of g++.

The problem was fixed with some patches directing libtool to link using $(CXX) 
as the linker:

fax2ps_LINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) $(AM_CXXFLAGS) 

in the

It turned out to be necessary to make this change in a number of other package 
using tiff.

Is there a more universal solution than modifying every affected package?

John R. Shannon