X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Funit-cc.pl;h=23a7dfb76fb7d74f031c8f137446760ec0d9c26b;hb=db3d6ae62dd235b484b02ad787fe3d38c9e50675;hp=3a40457f2932a93b89171917cc274beefe9151e0;hpb=5c93325b53342095f7f7ba0339e4f3ea52229dfe;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/make/unit-cc.pl b/make/unit-cc.pl index 3a40457f2..23a7dfb76 100755 --- a/make/unit-cc.pl +++ b/make/unit-cc.pl @@ -1,19 +1,21 @@ #!/usr/bin/perl use strict; use warnings; -BEGIN { push @INC, '..'; } +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);