Subject: tiff and C++
To: None <tech-pkg@netbsd.org>
From: John R. Shannon <john@johnrshannon.com>
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)
$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
in the Makefile.am.
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
john@johnrshannon.com
john.r.shannon@saic.com
shannonjr@NetBSD.org