x86-mingw32-build.sh updated for mingwrt-1.5

View: New views
3 Messages — Rating Filter:   Alert me  

x86-mingw32-build.sh updated for mingwrt-1.5

by Hin-Tak Leung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is my diff for updating the cross build script to the mingwrt-1.5 naming - mostly it is just replacing "mingw-runtime" by "mingwrt". I have successfully build gcc 4.2.1-2 and other current mingw components with it.

Two issues, which aren't critical but nonetheless annoying:

- gcc 4.2.1-2 needs -D__USE_MINGW_ANSI_STDIO=0 to build (which I have added to the gcc option section in the cross build script). This is I think either a bug in mingwrt or gcc or both. Such flag should not be needed, and either =1 or =0 should just work.

- the extra ending ${version}-mingw32 get sweeped into ${version}, which is
convenient for tar ball extraction and mostly just work; the only notable exception is version comparison (e.g. with "--use-latest-versions" is specified) - where some non-fatal error/warning messages appear.



[x86-mingw32-build.sh-mingwrt-1.5.patch]

diff -rubB orig/x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh
--- orig/x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh 2006-11-05 23:26:39.000000000 +0000
+++ x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh 2008-10-02 01:01:58.000000000 +0100
@@ -115,8 +115,8 @@
       cd "$WORKING_DIR"; test $LEAN_BUILD && rm -rf build-gcc
       ;;
 
-    headers | mingw-runtime | w32api)
-      test -r mingw-runtime-*/configure || $RUN prepare mingw-runtime-$RUNTIME_VERSION
+    headers | mingwrt | w32api)
+      test -r mingwrt-*/configure || $RUN prepare mingwrt-$RUNTIME_VERSION
       test -r w32api-*/configure || $RUN prepare w32api-$W32API_VERSION
       case $COMPONENT in
  headers)
@@ -125,16 +125,16 @@
     $RUN cd "$INSTALL_DIR" && $RUN ln -s . usr )
           test -e "$INSTALL_DIR/usr/local" || (
     $RUN cd "$INSTALL_DIR/usr" && $RUN ln -s . local )
-  $RUN cp -r mingw-runtime-*/include "$INSTALL_DIR" || die $? \
-            "$unrecoverable installing mingw-runtime headers"
+  $RUN cp -r mingwrt-*/include "$INSTALL_DIR" || die $? \
+            "$unrecoverable installing mingwrt headers"
   $RUN cp -r w32api-*/include "$INSTALL_DIR" || die $? \
             "$unrecoverable installing w32api headers"
   ;;
- mingw-runtime)
+ mingwrt)
           test -e w32api || $RUN ln -s w32api-* w32api
   ;;
       esac
-      case $COMPONENT in mingw-runtime | w32api)
+      case $COMPONENT in mingwrt | w32api)
  setbuilddir ${COMPONENT}-*
  $RUN ../configure --prefix="$INSTALL_DIR" --host="$TARGET" \
           --build=${BUILD_PLATFORM=`../config.guess`} || die $? \
@@ -149,7 +149,7 @@
       ;;
 
   esac; done
-  cd "$WORKING_DIR"; test $LEAN_BUILD && $RUN rm -rf mingw-runtime-* w32api-*
+  cd "$WORKING_DIR"; test $LEAN_BUILD && $RUN rm -rf mingwrt-* w32api-*
   BUILD_COMPONENTS=`case $BUILD_COMPONENTS in *gcc*) echo gcc ;; esac`
 done
 
diff -rubB orig/x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh.batch x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh.batch
--- orig/x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh.batch 2006-11-05 23:26:40.000000000 +0000
+++ x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh.batch 2008-10-02 01:29:46.000000000 +0100
@@ -33,12 +33,12 @@
   then
     option GCC_VERSION "`enumerate $PACKAGE_DIR/gcc-core- -src.tar.gz`"
     option BINUTILS_VERSION "`enumerate $PACKAGE_DIR/binutils- -src.tar.gz`"
-    option RUNTIME_VERSION "`enumerate $PACKAGE_DIR/mingw-runtime- -src.tar.gz`"
+    option RUNTIME_VERSION "`enumerate $PACKAGE_DIR/mingwrt- -src.tar.gz`"
     option W32API_VERSION "`enumerate $PACKAGE_DIR/w32api- -src.tar.gz`"
   else
     GCC_VERSION=`enumerate $PACKAGE_DIR/gcc-core- -src.tar.gz`
     BINUTILS_VERSION=`enumerate $PACKAGE_DIR/binutils- -src.tar.gz`
-    RUNTIME_VERSION=`enumerate $PACKAGE_DIR/mingw-runtime- -src.tar.gz`
+    RUNTIME_VERSION=`enumerate $PACKAGE_DIR/mingwrt- -src.tar.gz`
     W32API_VERSION=`enumerate $PACKAGE_DIR/w32api- -src.tar.gz`
   fi
   GCC_VERSION=`newest $GCC_VERSION`
diff -rubB orig/x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh.conf x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh.conf
--- orig/x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh.conf 2006-11-05 23:26:42.000000000 +0000
+++ x86-mingw32-build.sh-0.0-20061107-1/x86-mingw32-build.sh.conf 2008-10-02 02:38:56.000000000 +0100
@@ -79,7 +79,7 @@
      option BUILD_COMPONENTS              headers
      option BUILD_COMPONENTS              gcc
      option BUILD_COMPONENTS              w32api
-     option BUILD_COMPONENTS              mingw-runtime
+     option BUILD_COMPONENTS              mingwrt
 #
 # 7) GCC language options.  The compiler MUST be built to support
 #    at least `C' language.
@@ -142,12 +142,13 @@
      option LDFLAGS_FOR_BINUTILS         -s
 #
      option CFLAGS_FOR_GCC               -O2
+     option CFLAGS_FOR_GCC               -D__USE_MINGW_ANSI_STDIO=0
      option CFLAGS_FOR_GCC               -fomit-frame-pointer
 #
      option LDFLAGS_FOR_GCC              -s
 #
 # CFLAGS_FOR_RUNTIME and LDFLAGS_FOR_RUNTIME are applied when building
-# both the mingw-runtime and the w32api libraries:--
+# both the mingwrt and the w32api libraries:--
 #
      option CFLAGS_FOR_RUNTIME           -O2
      option CFLAGS_FOR_RUNTIME           -mms-bitfields


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-dvlpr mailing list
MinGW-dvlpr@...
https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr

Re: x86-mingw32-build.sh updated for mingwrt-1.5

by keithmarshall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 02 October 2008 04:16:41 Hin-Tak Leung wrote:
> This is my diff for updating the cross build script to the
> mingwrt-1.5 naming - mostly it is just replacing "mingw-runtime" by
> "mingwrt". I have successfully build gcc 4.2.1-2 and other current
> mingw components with it.

Thanks for working on this, but, to prevent it from being lost, please
submit your patch to the tracker:
https://sourceforge.net/tracker/?func=add&group_id=2435&atid=302435

Regards,
Keith.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-dvlpr mailing list
MinGW-dvlpr@...
https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr

Re: x86-mingw32-build.sh updated for mingwrt-1.5

by Hin-Tak Leung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Keith Marshall wrote:
> On Thursday 02 October 2008 04:16:41 Hin-Tak Leung wrote:
>> This is my diff for updating the cross build script to the
>> mingwrt-1.5 naming - mostly it is just replacing "mingw-runtime" by
>> "mingwrt". I have successfully build gcc 4.2.1-2 and other current
>> mingw components with it.
>
> Thanks for working on this, but, to prevent it from being lost, please
> submit your patch to the tracker:
> https://sourceforge.net/tracker/?func=add&group_id=2435&atid=302435

Posted an updated patch for mingwrt-3.15.1 (removing the unnecessary
-d__USE_MINGW_STUDIO=0) there.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-dvlpr mailing list
MinGW-dvlpr@...
https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr
LightInTheBox - Buy quality products at wholesale price!