You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the derivation for libsigc++ includes a patch that appends -std=c++11 to sigc++-2.0.pc. As a result a C++ project that uses libsigc++-2.0 may be interpreted according to a different standard than expected.
Issue description
Currently, the derivation for libsigc++ includes a patch that appends
-std=c++11
tosigc++-2.0.pc
. As a result a C++ project that uses libsigc++-2.0 may be interpreted according to a different standard than expected.For instance, GCC 6.1 and higher by default interprets C++ code according to the C++14 standard and using libsigc++ via pkg-config effectively downgrades this to C++11.
The patch responsible seems to originate from the Debian project where it was introduced in 2015 when GCC 5 was their default compiler and removed in 2016 when they switched to GCC 6.
As a side note, I feel pkg-config files are not the place to force a certain c++ standard.
Steps to reproduce
default.nix
that lists gcc, pkgconfig and libsigcxx as buildInputsnix-shell
gcc `pkg-config --cflags --libs sigc++-2.0` file.cpp
Technical details
The text was updated successfully, but these errors were encountered: