diff options
author | lloyd <[email protected]> | 2006-09-01 23:40:25 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-01 23:40:25 +0000 |
commit | 66c6e4858c71ecfe7f3c24d4a57a6212f3444885 (patch) | |
tree | 36ecf9cbdfed50c29181a12635e32219209e1a69 /misc | |
parent | b8844f2bfca984285f9cfe61bed56cf5d9c33705 (diff) |
All the user to specify --build-dir to configure.pl, which will allow for
multiple builds in a single directory.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/config/code/main.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/config/code/main.pl b/misc/config/code/main.pl index bf4d00381..65897ee95 100644 --- a/misc/config/code/main.pl +++ b/misc/config/code/main.pl @@ -7,6 +7,7 @@ my $module_set = ''; my $dumb_gcc = 0; my $autoconfig = 1; my $user_set_root = ''; +my $build_dir = ''; my @using_mods; my ($doc_dir, $lib_dir); @@ -26,6 +27,7 @@ GetOptions('debug' => sub { $debug = 1; }, 'prefix=s' => \$user_set_root, 'docdir=s' => \$doc_dir, 'libdir=s' => \$lib_dir, + 'build-dir=s' => \$build_dir, 'help' => sub { help(); } ); @@ -45,6 +47,12 @@ else { help(); } my ($cc,$os,$submodel) = split(/-/,$cc_os_cpu_set,3); if(!defined($cc) or !defined($os) or !defined($submodel)) { help(); } +if($build_dir ne '') +{ + $BUILD_DIR = $build_dir; + $BUILD_INCLUDE_DIR = $build_dir . '/include'; +} + ################################################## # Some special hacks # ################################################## |