X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Funit-cc.pl;h=3a40457f2932a93b89171917cc274beefe9151e0;hb=b4be0c94ab5fb7e5a7a799a195c78de072a5e315;hp=5110037ace2ce851c59980fb1b749aa05d1e3d8a;hpb=990e04bab51bf1c3771938b8f598272c1b31cdca;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/make/unit-cc.pl b/make/unit-cc.pl index 5110037ac..3a40457f2 100755 --- a/make/unit-cc.pl +++ b/make/unit-cc.pl @@ -15,7 +15,8 @@ if ($file =~ /^-/) { my $out = shift; -my $cflags = nopedantic($file) ? $ENV{NICEFLAGS} : $ENV{FLAGS}; +my $cflags = $ENV{CXXFLAGS}; +$cflags =~ s/ -pedantic// if nopedantic($file); $cflags .= ' ' . getcompilerflags($file); my $flags;