Bug#802786: libsigc++-2.0-dev: c++ only option in cflags
Bernd Zeimetz
bernd at bzed.de
Fri Oct 23 14:47:21 UTC 2015
Package: libsigc++-2.0-dev
Version: 2.6.1-3
Seveirity: grave
hi,
sigc++-2.0.pc has -std=c++11 in the Cflags option - but -std= is a
c++ compiler only option. So packages which depend on your library
(for example packages using gtkmm) ftbfs trying to compile their C
code with
cc1: error: command line option '-std=c++11' is valid for C++/ObjC++ but
not for C [-Werror]
Removing -std=c++11 from your .pc files makes these packages build
again.
I can see that there is a problem to require -std=c++11 while
pkg-config only provides Cflags as an option. But putting flags
gcc whines about into Cflags is not an option unfortunately.
Thats what cxxflags are for - which are not supported by pkg-config
unfortunately as far as I can see.
thanks,
Bernd
--
Bernd Zeimetz Debian GNU/Linux Developer
http://bzed.de http://www.debian.org
GPG Fingerprint: ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F
More information about the pkg-gnome-maintainers
mailing list