diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-28 00:55:42 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-28 00:55:42 +0000 |
commit | d5e36aa2b2ca26fe689ae9e29c74b3565dd018c7 (patch) | |
tree | 8bc1def53ab7817bfaeb183fed7872583a70acbd /make/unit-cc.pl | |
parent | 3900997a0971efc350400f62bfcac8c29aa65885 (diff) |
Fix warnings from BSD build and work around the failures of BSD make
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11771 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/unit-cc.pl')
-rwxr-xr-x | make/unit-cc.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/make/unit-cc.pl b/make/unit-cc.pl index 75c206d8c..d4786b8fe 100755 --- a/make/unit-cc.pl +++ b/make/unit-cc.pl @@ -4,16 +4,16 @@ use warnings; BEGIN { push @INC, $ENV{SOURCEPATH}; } use make::configure; -my $file = shift; +my $out = shift; my $verbose; -if ($file =~ /^-/) { - $_ = $file; - $file = shift; +if ($out =~ /^-/) { + $_ = $out; + $out = shift; $verbose = /v/; } -my $out = shift; +my $file = shift; my $cflags = $ENV{CXXFLAGS}; $cflags =~ s/ -pedantic// if nopedantic($file); |