summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-28 01:43:47 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-28 01:43:47 +0000
commitc7e90323583875f9029df6b012ce604f4d3ddb87 (patch)
tree3f5b8d44cdeed782455c5bcc4608207bb166cfa6
parentd5e36aa2b2ca26fe689ae9e29c74b3565dd018c7 (diff)
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
-rwxr-xr-xconfigure2
-rwxr-xr-xmake/unit-cc.pl2
2 files changed, 3 insertions, 1 deletions
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;