Skip to content
Commit f866e32e authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Drop -ansi from the default CXXFLAGS.

In preparation for making having the default CXXFLAGS available on all
systems using GCC instead of only Linux/Hurd, remove -ansi from the
CXXFLAGS.

strtoll(3), used, for example, in kdelibs, is part of C99; -ansi means
GCC will switch to C89 and C++98, which breaks things on systems such
as FreeBSD. It worked on glibc-based systems because libstdc++ always
defines _GNU_SOURCE on Linux, which ends up enabling additional
features.

This change should not break existing code, as dropping -ansi actually
means being less strict than before.

Discussed in the kde-buildsystem mailing list [1].

[1] http://lists.kde.org/?t=134482883000001&r=1&w=2

CCMAIL: kde-buildsystem@kde.org
parent 7752d6d5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment