Lots of packages with unneeded dependencies.
The libstdc++ library is only required if the program uses templates,
exceptions or some other new feature of the compiler. Most C++ programs
don't, and can be built without needing this library. My package lftp (C++)
is an example.
The problem is that the package, out of the box, will build with this
dependency. These are the steps to remove it:
1) Compile with -fno-rtti -fno-exceptions, this will also save some space.
2) In debian/rules, just after `make' remove the binaries built, and run `make
CPP=cc'.
Example from lftp's debian/rules:
make CXXFLAGS="-O -Wall -fno-exceptions -fno-rtti"
rm src/lftp src/ftpget
make -C src CXX=gcc CXXFLAGS="-O -Wall -fno-exceptions -fno-rtti"
touch build
Bye!
Reply to: