• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Experimental package creation tool for MinGW.org


Commit MetaInfo

Révision721f0143aa518562563aa5ed924c869d8cef0025 (tree)
l'heure2020-01-09 04:16:48
AuteurKeith Marshall <keith@user...>
CommiterKeith Marshall

Message de Log

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.

Change Summary

Modification

--- a/src/modules/actions.sh
+++ b/src/modules/actions.sh
@@ -125,6 +125,9 @@
125125 request_configure(){
126126 test "x$active_phase" = "xcompile" \
127127 || 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"
128131 eval ${PACKAGE_SRCDIR="${SRCDIR-"."}"}/configure $configure_options \
129132 || die "package configuration failed"
130133 test "x$active_phase" = "xconfigure" && phase "done."
--- a/src/modules/help.sh
+++ b/src/modules/help.sh
@@ -109,6 +109,12 @@
109109 output, rather than creating or overwriting the
110110 default package specification file.
111111
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+
112118 ETX
113119 }
114120
--- a/src/modules/options.sh
+++ b/src/modules/options.sh
@@ -75,6 +75,9 @@
7575
7676 optdefine ignore-untracked-files
7777 opteval_ignore_untracked_files() { ignore_untracked_files=true; }
78+
79+ optdefine xtool
80+ opteval_xtool() { xtool_mode=true; }
7881 #
7982 # -----------------------------------------------------------------------------
8083 # $RCSfile$: end of file