diff options
Diffstat (limited to 'configure-mingw-n64.pl')
| -rwxr-xr-x | configure-mingw-n64.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure-mingw-n64.pl b/configure-mingw-n64.pl new file mode 100755 index 0000000..8c47c53 --- /dev/null +++ b/configure-mingw-n64.pl @@ -0,0 +1,16 @@ +#!/usr/bin/perl -w + +use strict; +use Cwd; + +if ($ENV{USER} ne "root") { + die "You must be root to run this script.\n"; +} + +system("sh", "git", "submodule", "update", "--init", "--recursive"); + +chdir("./toolchains/mingw-w64-nekernel/") or die "Cannot change directory: $!"; + +system("configure", "--host=x86_64-w64-mingw32", "--prefix=mingw64-w64-nekernel") or die "Configuration failed: $!"; + +print("Configuration and build complete.\nUse 'make install' to install the toolchain.\n"); |
