From c7e90323583875f9029df6b012ce604f4d3ddb87 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 28 Sep 2009 01:43:47 +0000 Subject: Add directory change to unit-cc, to fix the immensely stupid BSD make behavior of changing directories git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11772 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 2 +- make/unit-cc.pl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 05c4a5e9b..72764eec0 100755 --- a/configure +++ b/configure @@ -1077,7 +1077,7 @@ EOF print "Writing \e[1;32m$file\e[0m ...\n"; - $config{BUILD_DIR} ||= 'build'; + $config{BUILD_DIR} ||= resolve_directory($config{ME}."/build"); for my $var (qw( CC SYSTEM BASE_DIR CONFIG_DIR MODULE_DIR BINARY_DIR BUILD_DIR diff --git a/make/unit-cc.pl b/make/unit-cc.pl index d4786b8fe..23a7dfb76 100755 --- a/make/unit-cc.pl +++ b/make/unit-cc.pl @@ -4,6 +4,8 @@ use warnings; BEGIN { push @INC, $ENV{SOURCEPATH}; } use make::configure; +chdir $ENV{BUILDPATH}; + my $out = shift; my $verbose; -- cgit v1.2.3