X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Funit-cc.pl;h=23a7dfb76fb7d74f031c8f137446760ec0d9c26b;hb=db3d6ae62dd235b484b02ad787fe3d38c9e50675;hp=75c206d8c0a8fc7f47b7e575268b0c8f45ce4f75;hpb=792d6d6725c7d80d223f5cccd9ee0c5b07229e9a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/make/unit-cc.pl b/make/unit-cc.pl index 75c206d8c..23a7dfb76 100755 --- a/make/unit-cc.pl +++ b/make/unit-cc.pl @@ -4,16 +4,18 @@ use warnings; BEGIN { push @INC, $ENV{SOURCEPATH}; } use make::configure; -my $file = shift; +chdir $ENV{BUILDPATH}; + +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);