Experimental package creation tool for MinGW.org
Révision | 721f0143aa518562563aa5ed924c869d8cef0025 (tree) |
---|---|
l'heure | 2020-01-09 04:16:48 |
Auteur | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Add support for building cross-compiler tools.
* src/modules/options.sh (--xtool): New option; define it.
* src/modules/help.sh [options] (--xtool): Document it.
* src/modules/actions.sh (request_configure) [xtool_mode]: Action it.
($PACKAGE-$VERSION-$ARCH.xconfig) [readable]: Source it.
@@ -125,6 +125,9 @@ | ||
125 | 125 | request_configure(){ |
126 | 126 | test "x$active_phase" = "xcompile" \ |
127 | 127 | || phase configure "configure for build" |
128 | + test -r "$PACKAGE_SRCDIR/arch/$ARCH/$PACKAGE-$VERSION-$ARCH.xconfig" && | |
129 | + . "$PACKAGE_SRCDIR/arch/$ARCH/$PACKAGE-$VERSION-$ARCH.xconfig" | |
130 | + ${xtool_mode-false} || eval configure_options="$xhost_configure_options" | |
128 | 131 | eval ${PACKAGE_SRCDIR="${SRCDIR-"."}"}/configure $configure_options \ |
129 | 132 | || die "package configuration failed" |
130 | 133 | test "x$active_phase" = "xconfigure" && phase "done." |
@@ -109,6 +109,12 @@ | ||
109 | 109 | output, rather than creating or overwriting the |
110 | 110 | default package specification file. |
111 | 111 | |
112 | + --xtool Enable cross-compiler build mode; do not pass any | |
113 | + "--build" or "--host" options to configure, so that | |
114 | + configuration relates to native compilation of the | |
115 | + cross-compiler tools themselves, when running the | |
116 | + build process on a non-MinGW host. | |
117 | + | |
112 | 118 | ETX |
113 | 119 | } |
114 | 120 |
@@ -75,6 +75,9 @@ | ||
75 | 75 | |
76 | 76 | optdefine ignore-untracked-files |
77 | 77 | opteval_ignore_untracked_files() { ignore_untracked_files=true; } |
78 | + | |
79 | + optdefine xtool | |
80 | + opteval_xtool() { xtool_mode=true; } | |
78 | 81 | # |
79 | 82 | # ----------------------------------------------------------------------------- |
80 | 83 | # $RCSfile$: end of file |