From: <ped...@us...> - 2008-09-14 19:14:43
|
Revision: 1173 http://cegcc.svn.sourceforge.net/cegcc/?rev=1173&view=rev Author: pedroalves Date: 2008-09-14 19:14:41 +0000 (Sun, 14 Sep 2008) Log Message: ----------- Put things in their right place. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/w32api/ChangeLog.ce Added Paths: ----------- trunk/cegcc/src/cegcc/ChangeLog Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2008-09-04 18:45:10 UTC (rev 1172) +++ trunk/cegcc/src/ChangeLog 2008-09-14 19:14:41 UTC (rev 1173) @@ -3,12 +3,6 @@ * build-cegcc.sh : Remove all instances of the function keyword for POSIX compliance. Based on info by Mosfet, see the mailing list. -2008-06-20 Eric House <ee...@ee...> - - * cegcc/importlibs/defs/aygshell.def, w32api/include/aygshell.h, - w32api/libce/aygshell.def (SHSendBackToFocusWindow, SHMBOF_NODEFAULT, - SHMBOF_NOTIFY, SHCMBM_OVERRIDEKEY, VK_TBACK) : Define. - 2008-06-20 Danny Backx <dan...@us...> * build-mingw32ce.sh: Export BASE_DIRECTORY, the mingwdll build stuff Added: trunk/cegcc/src/cegcc/ChangeLog =================================================================== --- trunk/cegcc/src/cegcc/ChangeLog (rev 0) +++ trunk/cegcc/src/cegcc/ChangeLog 2008-09-14 19:14:41 UTC (rev 1173) @@ -0,0 +1,3 @@ +2008-06-20 Eric House <ee...@ee...> + + * importlibs/defs/aygshell.def (SHSendBackToFocusWindow): Define. Property changes on: trunk/cegcc/src/cegcc/ChangeLog ___________________________________________________________________ Added: svn:eol-style + native Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2008-09-04 18:45:10 UTC (rev 1172) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2008-09-14 19:14:41 UTC (rev 1173) @@ -3,6 +3,13 @@ * include/winbase.h: Fix SetSystemPowerState as indicated by Klaus Rechert. +2008-06-20 Eric House <ee...@ee...> + + * libce/aygshell.def (SHSendBackToFocusWindow): Define. + * include/aygshell.h (SHSendBackToFocusWindow): Declare. + (SHMBOF_NODEFAULT, SHMBOF_NOTIFY, SHCMBM_OVERRIDEKEY, VK_TBACK): + Define. + 2008-06-20 Danny Backx <dan...@us...> * include/aygshell.h: Include prsht.h. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2008-09-24 00:57:30
|
Revision: 1183 http://cegcc.svn.sourceforge.net/cegcc/?rev=1183&view=rev Author: pedroalves Date: 2008-09-24 00:57:24 +0000 (Wed, 24 Sep 2008) Log Message: ----------- 2008-09-24 Pedro Alves <ped...@us...> * build-mingw32ce.sh: Require bash. Use a central a module list instead of hardcoding it in several places. Use set -e, instead of a `|| exit 1' construct throughout. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2008-09-18 21:25:14 UTC (rev 1182) +++ trunk/cegcc/src/ChangeLog 2008-09-24 00:57:24 UTC (rev 1183) @@ -1,6 +1,12 @@ +2008-09-24 Pedro Alves <ped...@us...> + + * build-mingw32ce.sh: Require bash. Use a central a module list + instead of hardcoding it in several places. Use set -e, instead + of a `|| exit 1' construct throughout. + 2008-06-22 Danny Backx <dan...@so...> - * build-cegcc.sh : Remove all instances of the function keyword for + * build-cegcc.sh: Remove all instances of the function keyword for POSIX compliance. Based on info by Mosfet, see the mailing list. 2008-06-20 Danny Backx <dan...@us...> Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2008-09-18 21:25:14 UTC (rev 1182) +++ trunk/cegcc/src/build-mingw32ce.sh 2008-09-24 00:57:24 UTC (rev 1183) @@ -1,15 +1,35 @@ -#!/bin/sh +#! /usr/bin/env bash -export BASE_DIRECTORY=`dirname $0` -export BASE_DIRECTORY=`(cd ${BASE_DIRECTORY}; pwd)` +BASE_DIRECTORY=`dirname $0` +BASE_DIRECTORY=`(cd ${BASE_DIRECTORY}; pwd)` ME=`basename $0` +# FIXME: some components need this (mingwdll), but they shouldn't. +export BASE_DIRECTORY + # # Initializations. # -ac_default_prefix="/opt/mingw32ce" export BUILD_DIR=`pwd` +ac_default_prefix="/opt/mingw32ce" + +gcc_src=gcc + +# The list of components, in build order. There's a build_FOO +# function for each of these components +COMPONENTS=( binutils bootstrap_gcc mingw w32api gcc profile dlls docs ) +COMPONENTS_NUM=${#COMPONENTS} + +# Build comma separated list of components, for user display. +for ((i=0;i<$COMPONENTS_NUM;i++)); do + if [ $i = 0 ]; then + COMPONENTS_COMMA_LIST=${COMPONENTS[${i}]} + else + COMPONENTS_COMMA_LIST="${COMPONENTS_COMMA_LIST}, ${COMPONENTS[${i}]}" + fi +done + usage() { cat << _ACEOF @@ -22,8 +42,7 @@ --prefix=PREFIX install toolchain in PREFIX [$ac_default_prefix] --components=LIST specify which components to build - valid components are: all,binutils,bootstrapgcc, - mingw,w32api,gcc,docs,profile,gdb,gdbstub,dlls + valid components are: ${COMPONENTS_COMMA_LIST} [all] Report bugs to <ceg...@li...>. @@ -82,6 +101,9 @@ esac done +# We don't want no errors from here on. +set -e + if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 @@ -136,25 +158,25 @@ echo "BUILDING BINUTILS --------------------------" echo "" echo "" - mkdir -p binutils || exit 1 + mkdir -p binutils cd binutils ${BASE_DIRECTORY}/binutils/configure \ --prefix=${PREFIX} \ --target=${TARGET} \ - --disable-nls || exit 1 + --disable-nls - make || exit 1 - make install || exit 1 - + make + make install + cd ${BUILD_DIR} } build_bootstrap_gcc() { - mkdir -p gcc-bootstrap || exit 1 + mkdir -p gcc-bootstrap cd gcc-bootstrap - ${BASE_DIRECTORY}/gcc/configure \ + ${BASE_DIRECTORY}/${gcc_src}/configure \ --with-gcc \ --with-gnu-ld \ --with-gnu-as \ @@ -165,70 +187,59 @@ --enable-languages=c \ --disable-win32-registry \ --disable-multilib \ + --disable-shared \ --disable-interwork \ --without-newlib \ - --enable-checking \ - || exit 1 + --enable-checking - make all-gcc || exit 1 - make install-gcc || exit 1 + make all-gcc + if [ ${gcc_src} != "gcc" ]; + then + make all-target-libgcc + fi + make install-gcc + if [ ${gcc_src} != "gcc" ]; + then + make install-target-libgcc + fi + cd ${BUILD_DIR} } build_w32api() { -#I have this normally set by ccache. -#Must unset them, because mingw being a lib, -#uses $host==$target, and CC instead of CC_FOR_TARGET. - PREV_CC=${CC} - unset CC - - mkdir -p w32api || exit 1 + mkdir -p w32api cd w32api ${BASE_DIRECTORY}/w32api/configure \ --host=${TARGET} \ - --prefix=${PREFIX} \ - || exit 1 + --prefix=${PREFIX} - make || exit 1 - make install || exit 1 - - export CC=${PREV_CC} - cd ${BUILD_DIR} + make + make install } -build_mingw_runtime() +build_mingw() { -#I have this normally set by ccache. -#Must unset them, because mingw being a lib, -#uses $host==$target, and CC instead of CC_FOR_TARGET. - PREV_CC=${CC} - unset CC - - mkdir -p mingw || exit 1 + mkdir -p mingw cd mingw ${BASE_DIRECTORY}/mingw/configure \ --build=${BUILD} \ --host=${TARGET} \ --target=${TARGET} \ - --prefix=${PREFIX} \ - || exit 1 + --prefix=${PREFIX} - make || exit 1 - make install || exit 1 - - export CC=${PREV_CC} - cd ${BUILD_DIR} + make + make install } build_gcc() { - mkdir -p gcc || exit 1 + mkdir -p gcc cd gcc - ${BASE_DIRECTORY}/gcc/configure \ + ${BASE_DIRECTORY}/${gcc_src}/configure \ --with-gcc \ --with-gnu-ld \ --with-gnu-as \ @@ -242,27 +253,15 @@ --disable-interwork \ --without-newlib \ --enable-checking \ - --with-headers \ - || exit + --with-headers # we build libstdc++ as dll, so we don't need this. # --enable-fully-dynamic-string \ # --disable-clocale \ - # - # Below, the first "make" followed by a file removal, are a workaround - # for a gcc build bug. The existence of the script causes the first - # make to fail, the second one should succeed. Therefore, not checking - # the error code of the first make is intentional. - # - make - rm -f gcc/as - make || exit 1 - # - # End workaround - # - make install || exit 1 + make -j4 + make install cd ${BUILD_DIR} } @@ -274,12 +273,9 @@ echo "" echo "" - mkdir -p gdb || exit 1 - cd gdb || exit 1 + mkdir -p gdb + cd gdb - PREV_CFLAGS=${CFLAGS} - export CFLAGS="-I${BASE_DIRECTORY}/w32api/include" - ${BASE_DIRECTORY}/gdb/configure \ --with-gcc \ --with-gnu-ld \ @@ -290,33 +286,34 @@ --disable-win32-registry \ --disable-multilib \ --disable-interwork \ - --enable-checking \ - || exit 1 + --enable-checking export CFLAGS=${PREV_CFLAGS} - make || exit 1 - make install || exit 1 + make + make install cd ${BUILD_DIR} } -build_gdbstub() +build_gdbserver() { echo "" - echo "BUILDING GDB stub --------------------------" + echo "BUILDING gdbserver --------------------------" echo "" echo "" - STUB_EXE=${PREFIX}/bin/${TARGET}-stub.exe - STUB_SRC=${BASE_DIRECTORY}/gdb/gdb/wince-stub.c + mkdir -p gdbserver + cd gdbserver - ${TARGET}-gcc -O2 \ - ${STUB_SRC} \ - -o ${STUB_EXE} \ - -lwinsock || exit 1 - ${TARGET}-strip ${STUB_EXE} || exit 1 + ${BASE_DIRECTORY}/gdb/gdbserver/configure \ + --target=${TARGET} \ + --host=${TARGET} \ + --prefix=${PREFIX} \ + make + make install + cd ${BUILD_DIR} } @@ -327,19 +324,19 @@ echo "" echo "" - mkdir -p ${PREFIX}/share/docs || exit 1 - mkdir -p ${PREFIX}/share/images || exit 1 + mkdir -p ${PREFIX}/share/docs + mkdir -p ${PREFIX}/share/images - cd ${BASE_DIRECTORY}/../docs || exit 1 - tar cf - . | (cd ${PREFIX}/share/docs; tar xf -) || exit 1 - cd ${BASE_DIRECTORY}/../website || exit 1 - tar cf - images | (cd ${PREFIX}/share; tar xf -) || exit 1 + cd ${BASE_DIRECTORY}/../docs + tar cf - . | (cd ${PREFIX}/share/docs; tar xf -) + cd ${BASE_DIRECTORY}/../website + tar cf - images | (cd ${PREFIX}/share; tar xf -) - cd ${BASE_DIRECTORY}/.. || exit 1 - cp NEWS README ${PREFIX} || exit 1 - cp src/binutils/COPYING ${PREFIX} || exit 1 - cp src/binutils/COPYING.LIB ${PREFIX} || exit 1 - cp src/newlib/COPYING.NEWLIB ${PREFIX} || exit 1 + cd ${BASE_DIRECTORY}/.. + cp NEWS README ${PREFIX} + cp src/binutils/COPYING ${PREFIX} + cp src/binutils/COPYING.LIB ${PREFIX} + cp src/newlib/COPYING.NEWLIB ${PREFIX} cd ${BUILD_DIR} } @@ -351,7 +348,7 @@ echo "" echo "" - mkdir -p profile || exit 1 + mkdir -p profile cd profile ${BASE_DIRECTORY}/profile/configure \ @@ -361,8 +358,8 @@ --prefix=${PREFIX} \ || exit - make || exit 1 - make install || exit 1 + make + make install cd ${BUILD_DIR} } @@ -376,11 +373,11 @@ cd ${BUILD_DIR} - mkdir -p dll || exit 1 + mkdir -p dll cd dll - cd ${BASE_DIRECTORY} || exit 1 - ${BASE_DIRECTORY}/build-mingw32ce-dlls.sh || exit 1 + cd ${BASE_DIRECTORY} + ${BASE_DIRECTORY}/build-mingw32ce-dlls.sh cd ${BUILD_DIR} } @@ -394,25 +391,19 @@ cd ${BUILD_DIR} - cd ${BASE_DIRECTORY}/mingwdll || exit 1 - make || exit 1 - make install || exit 1 + cd ${BASE_DIRECTORY}/mingwdll + make + make install cd ${BUILD_DIR} } build_all() { - build_binutils - build_bootstrap_gcc - build_mingw_runtime - build_w32api - build_gcc - build_docs - build_profile - build_gdb - build_gdbstub - build_dlls + for ((i=0;i<$COMPONENTS_NUM;i++)); do + comp=${COMPONENTS[${i}]} + build_$comp + done } split_components=`echo "${components}" | sed -e 's/,/ /g'` @@ -420,16 +411,19 @@ # check for valid options before trying to build them all. eval "set -- $split_components" while [ -n "$1" ]; do - case $1 in - binutils | bootstrapgcc | w32api | \ - mingw | gcc | gdb | gdbstub | \ - docs | profile | dlls | all) - ;; - *) + if [ "$1" != "all" ]; then + found=false + for ((i=0;i<$COMPONENTS_NUM;i++)); do + if [ "${COMPONENTS[${i}]}" = "$1" ]; then + found=true + fi + done + if [ $found = false ] ; then echo "Please enter a valid build option." exit 1 - ;; - esac + fi + fi + shift done @@ -444,25 +438,13 @@ echo "prefix: ${PREFIX}" echo "components: ${components}" -mkdir -p ${BUILD_DIR} || exit 1 -mkdir -p ${PREFIX} || exit 1 +mkdir -p ${BUILD_DIR} +mkdir -p ${PREFIX} -# now actually try to build them. +# Now actually build them. eval "set -- $split_components" while [ -n "$1" ]; do - case $1 in - binutils) build_binutils ;; - bootstrapgcc) build_bootstrap_gcc ;; - w32api) build_w32api ;; - mingw) build_mingw_runtime ;; - gcc) build_gcc ;; - gdb) build_gdb ;; - gdbstub) build_gdbstub ;; - docs) build_docs ;; - profile) build_profile ;; - dlls) build_dlls ;; - all) build_all ;; - esac + build_${1} shift done This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2008-09-24 01:30:25
|
Revision: 1188 http://cegcc.svn.sourceforge.net/cegcc/?rev=1188&view=rev Author: pedroalves Date: 2008-09-24 01:30:18 +0000 (Wed, 24 Sep 2008) Log Message: ----------- * build-cegcc.sh: Rewrite based on build-mingw32ce.sh. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-cegcc.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2008-09-24 01:22:47 UTC (rev 1187) +++ trunk/cegcc/src/ChangeLog 2008-09-24 01:30:18 UTC (rev 1188) @@ -1,5 +1,9 @@ 2008-09-24 Pedro Alves <ped...@us...> + * build-cegcc.sh: Rewrite based on build-mingw32ce.sh. + +2008-09-24 Pedro Alves <ped...@us...> + * build-mingw32ce.sh: Require bash. Use a central a module list instead of hardcoding it in several places. Use set -e, instead of a `|| exit 1' construct throughout. Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2008-09-24 01:22:47 UTC (rev 1187) +++ trunk/cegcc/src/build-cegcc.sh 2008-09-24 01:30:18 UTC (rev 1188) @@ -1,87 +1,179 @@ -#!/bin/sh +#! /usr/bin/env bash -if [ $# -lt 2 ] ; then - echo "Using defaults:" - export BASE_DIRECTORY=`readlink -f .` - export BUILD_DIR=${BASE_DIRECTORY}/build-cegcc - export PREFIX=/opt/cegcc +BASE_DIRECTORY=`dirname $0` +BASE_DIRECTORY=`(cd ${BASE_DIRECTORY}; pwd)` +ME=`basename $0` - if [ $# -lt 1 ] ; then - BUILD_OPT="all" - else - BUILD_OPT="$1" - shift +# +# Initializations. +# +export BUILD_DIR=`pwd` + +ac_default_prefix="/opt/cegcc" +ac_default_destdir="${BUILD_DIR}/install" + +gcc_src=gcc + +# The list of components, in build order. There's a build_FOO +# function for each of these components +COMPONENTS=( binutils bootstrapgcc w32api newlib dummy_cegccdll gcc cegccdll cegccthrddll libstdcppdll profile docs ) +COMPONENTS_NUM=${#COMPONENTS} + +# Build comma separated list of components, for user display. +for ((i=0;i<$COMPONENTS_NUM;i++)); do + if [ $i = 0 ]; then + COMPONENTS_COMMA_LIST=${COMPONENTS[${i}]} + else + COMPONENTS_COMMA_LIST="${COMPONENTS_COMMA_LIST}, ${COMPONENTS[${i}]}" + fi +done + +usage() +{ + cat << _ACEOF + +$ME builds the mingw32ce toolchain. + +Usage: $0 [OPTIONS] ... + + -h, --help print this help, then exit + --prefix=PREFIX install toolchain in PREFIX + [$ac_default_prefix] + --components=LIST specify which components to build + valid components are: ${COMPONENTS_COMMA_LIST} + [all] + +Report bugs to <ceg...@li...>. +_ACEOF + +} + +ac_prev= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue fi + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + case $ac_option in + + -help | --help | --hel | --he | -h) + usage; exit 0 ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -components | --components | --component | --componen | \ + --compone | --compon | --compo | --comp | --com \ + | --co | --c) + ac_prev=components ;; + -components=* | --components=* | --component=* | --componen=* \ + | --compone=* | --compon=* | --compo=* | --comp=* | --com=* \ + | --co=* | --c=*) + components=$ac_optarg ;; + + -destdir | --destdir | --destdi | --destd | --dest | --des | --de | --d) + ac_prev=destdir ;; + -destdir=* | --destdir=* | --destdi=* | --destd=* | --dest=* | --des=* | --de=* | --d=*) + destdir=$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + + *) + ;; + esac +done + +# We don't want no errors from here on. +set -e + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +if [ "x${prefix}" != "x" ]; then + export PREFIX="${prefix}" else - export BASE_DIRECTORY=`readlink -f $1` - export BUILD_DIR=`readlink -f $2` - export PREFIX=`readlink -f $3` - BUILD_OPT="$4" - shift 4 + export PREFIX=${ac_default_prefix} fi -export TARGET="arm-wince-cegcc" -export PATH=${PREFIX}/bin:${PATH} -#export CFLAGS="-g3 -O0" +# Figure out what components where requested to be built. +if test x"${components+set}" != xset; then + components=all +else + if test x"${components}" = x || + test x"${components}" = xyes; + then + echo --components needs at least one argument 1>&2 + exit 1 + fi +fi -echo "Building cegcc:" -echo "source: ${BASE_DIRECTORY}" -echo "build: ${BUILD_DIR}" -echo "prefix: ${PREFIX}" +# embedded tabs in the sed below -- do not untabify +components=`echo "${components}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` -mkdir -p ${BUILD_DIR} || exit 1 -mkdir -p ${PREFIX} || exit 1 +# Don't build in source directory, it will clobber things and cleanup is hard. +if [ -d ${BUILD_DIR}/.svn ]; then + echo "Don't build in a source directory, please create an empty directory and build there." + echo "Example :" + echo " mkdir build-mingw32ce" + echo " cd build-mingw32ce" + echo " sh ../build-mingw32ce.sh $@" + exit 1 +fi build_binutils() { echo "" echo "BUILDING BINUTILS --------------------------" echo "" - - mkdir -p ${BUILD_DIR}/binutils || exit 1 - cd ${BUILD_DIR}/binutils || exit 1 + echo "" + mkdir -p binutils + cd binutils ${BASE_DIRECTORY}/binutils/configure \ --prefix=${PREFIX} \ - --exec-prefix=${PREFIX} \ - --bindir=${PREFIX}/bin \ --target=${TARGET} \ - --disable-nls \ - --includedir=${PREFIX}/include || exit 1 - make || exit 1 - make install || exit 1 - - cd ${BASE_DIRECTORY} || exit 1 -} + --disable-nls -build_import_libs() -{ - echo "" - echo "Building import libs. --------------------------" - echo "" - echo "" + make + make install - mkdir -p ${PREFIX}/${TARGET}/lib || exit 1 - cd ${BASE_DIRECTORY}/cegcc/importlibs || exit 1 - ./build.sh ./defs ${PREFIX}/${TARGET}/lib || exit 1 - - cd ${BASE_DIRECTORY} || exit 1 -} + cd ${BUILD_DIR} +} - -copy_w32api_headers() -{ - echo "" - echo "Copying w32api headers. ----------------------" - echo "" - echo "" - - mkdir -p ${PREFIX}/${TARGET}/include/w32api/{GL,directx,ddk} - cp -fp ${BASE_DIRECTORY}/w32api/include/*.h ${PREFIX}/${TARGET}/include/w32api || exit 1 - cp -fp ${BASE_DIRECTORY}/w32api/include/GL/*.h ${PREFIX}/${TARGET}/include/w32api/GL || exit 1 - cp -fp ${BASE_DIRECTORY}/w32api/include/directx/*.h ${PREFIX}/${TARGET}/include/w32api/directx || exit 1 - cp -fp ${BASE_DIRECTORY}/w32api/include/ddk/*.h ${PREFIX}/${TARGET}/include/w32api/ddk || exit 1 -} - build_dummy_cegccdll() { echo "" @@ -89,21 +181,19 @@ echo "" echo "" - pushd ${BASE_DIRECTORY}/cegcc/fakecegccdll || exit 1 - ./install.sh ${PREFIX} || exit 1 - popd || exit 1 + cd ${BASE_DIRECTORY}/cegcc/fakecegccdll + + sh ./install.sh ${PREFIX} + + cd ${BUILD_DIR} } build_bootstrap_gcc() { - echo "" - echo "Building bootstrap gcc. ----------------------" - echo "" + mkdir -p gcc-bootstrap + cd gcc-bootstrap - mkdir -p ${BUILD_DIR}/gcc-bootstrap || exit 1 - cd ${BUILD_DIR}/gcc-bootstrap || exit 1 - - ${BASE_DIRECTORY}/gcc/configure \ + ${BASE_DIRECTORY}/${gcc_src}/configure \ --with-gcc \ --with-gnu-ld \ --with-gnu-as \ @@ -114,47 +204,47 @@ --enable-languages=c \ --disable-win32-registry \ --disable-multilib \ + --disable-shared \ --disable-interwork \ - --without-headers \ - --enable-checking \ - || exit 1 + --without-newlib \ + --enable-checking - make all-gcc || exit 1 - make install-gcc || exit 1 - cd ${BASE_DIRECTORY} || exit 1 + make all-gcc + + if [ ${gcc_src} != "gcc" ]; + then + make all-target-libgcc + fi + make install-gcc + if [ ${gcc_src} != "gcc" ]; + then + make install-target-libgcc + fi + + cd ${BUILD_DIR} } -build_newlib() +build_w32api() { - echo "" - echo "Building newlib. --------------------------" - echo "" - echo "" + mkdir -p w32api + cd w32api - mkdir -p ${BUILD_DIR}/newlib || exit 1 - cd ${BUILD_DIR}/newlib || exit 1 + ${BASE_DIRECTORY}/w32api/configure \ + --host=${TARGET} \ + --prefix=${PREFIX} - ${BASE_DIRECTORY}/newlib/configure \ - --target=${TARGET} \ - --prefix=${PREFIX} \ - || exit 1 + make + make install - make || exit 1 - make install || exit 1 - cd ${BASE_DIRECTORY} || exit 1 + cd ${BUILD_DIR} } build_gcc() { - echo "" - echo "Building full gcc. --------------------------" - echo "" - echo "" - - mkdir -p ${BUILD_DIR}/gcc || exit 1 - pushd ${BUILD_DIR}/gcc || exit 1 - - ${BASE_DIRECTORY}/gcc/configure \ + mkdir -p gcc + cd gcc + + ${BASE_DIRECTORY}/${gcc_src}/configure \ --with-gcc \ --with-gnu-ld \ --with-gnu-as \ @@ -168,117 +258,72 @@ --disable-interwork \ --without-newlib \ --enable-checking \ - --with-headers \ - || exit 1 + --with-headers +# we build libstdc++ as dll, so we don't need this. +# --enable-fully-dynamic-string \ - # - # Below, the first "make" followed by a file removal, are a workaround - # for a gcc build bug. The existence of the script causes the first - # make to fail, the second one should succeed. Therefore, not checking - # the error code of the first make is intentional. - # - make - rm -f gcc/as - make || exit 1 - # - # End workaround - # - make install || exit 1 +# --disable-clocale \ - popd || exit 1 + make -j4 + make install + + cd ${BUILD_DIR} } -build_cegccdll() +build_newlib() { echo "" - echo "Building cegcc.dll --------------------------" + echo "Building newlib. --------------------------" echo "" echo "" - cd ${BASE_DIRECTORY}/cegcc/cegccdll || exit 1 - make || exit 1 - make install || exit 1 -} + mkdir -p newlib + cd newlib -build_cegccthrddll() -{ - echo "" - echo "Building cegccthrd.dll --------------------------" - echo "" - echo "" + ${BASE_DIRECTORY}/newlib/configure \ + --target=${TARGET} \ + --prefix=${PREFIX} - cd ${BASE_DIRECTORY}/cegcc/cegccthrd || exit 1 - make || exit 1 - make install || exit 1 + make + make install + cd ${BASE_DIRECTORY} } -build_libstdcppdll() +build_cegccdll() { echo "" - echo "Building libstdc++.dll --------------------------" + echo "Building cegcc.dll --------------------------" echo "" echo "" - cd ${BASE_DIRECTORY}/cegcc/libstdc++ || exit 1 - make || exit 1 - make install || exit 1 + cd ${BASE_DIRECTORY}/cegcc/cegccdll + make + make install } -build_gdb() +build_cegccthrddll() { echo "" - echo "BUILDING GDB --------------------------" + echo "Building cegccthrd.dll --------------------------" echo "" echo "" - mkdir -p ${BUILD_DIR}/gdb || exit 1 - cd ${BUILD_DIR}/gdb || exit 1 - - PREV_CFLAGS=${CFLAGS} - export CFLAGS="-I${BASE_DIRECTORY}/w32api/include" - - ${BASE_DIRECTORY}/gdb/configure \ - --with-gcc \ - --with-gnu-ld \ - --with-gnu-as \ - --target=${TARGET} \ - --prefix=${PREFIX} \ - --disable-nls \ - --disable-win32-registry \ - --disable-multilib \ - --disable-interwork \ - --enable-checking \ - || exit - - export CFLAGS=${PREV_CFLAGS} - - make || exit 1 - make install || exit 1 + cd ${BASE_DIRECTORY}/cegcc/cegccthrd + make + make install } -build_gdbstub() +build_libstdcppdll() { echo "" - echo "BUILDING GDB stub --------------------------" + echo "Building libstdc++.dll --------------------------" echo "" echo "" - STUB_EXE=${PREFIX}/bin/${TARGET}-stub.exe - STUB_SRC=${BASE_DIRECTORY}/gdb/gdb/wince-stub.c - - #pass -static so the stub doesn't depend on cegcc.dll. - #Useful for debugging cegcc.dll itself. - #Actually, the stub would better be built with -mno-cegcc/arm-wince-mingw32 - #To remove the newlib/cegcc.dll dependency, since it mostly uses win32 api. - #Removed for now, as it is giving problems. - ${TARGET}-gcc -O2 -mwin32 \ - ${STUB_SRC} \ - -o ${STUB_EXE} \ - -lwinsock || exit 1 - ${TARGET}-strip ${STUB_EXE} || exit 1 - - cd ${BASE_DIRECTORY} || exit 1 + cd ${BASE_DIRECTORY}/cegcc/libstdc++ + make + make install } build_profile() @@ -288,18 +333,17 @@ echo "" echo "" - mkdir -p ${BUILD_DIR}/profile || exit 1 - cd ${BUILD_DIR}/profile || exit 1 + mkdir -p ${BUILD_DIR}/profile + cd ${BUILD_DIR}/profile ${BASE_DIRECTORY}/profile/configure \ --build=${BUILD} \ --host=${TARGET} \ --target=${TARGET} \ - --prefix=${PREFIX} \ - || exit + --prefix=${PREFIX} - make || exit 1 - make install || exit 1 + make + make install } build_docs() @@ -309,67 +353,71 @@ echo "" echo "" - mkdir -p ${PREFIX}/share/docs || exit 1 - mkdir -p ${PREFIX}/share/images || exit 1 + mkdir -p ${PREFIX}/share/docs + mkdir -p ${PREFIX}/share/images - cd ${BASE_DIRECTORY}/../docs || exit 1 - tar cf - . | (cd ${PREFIX}/share/docs; tar xf -) || exit 1 - cd ${BASE_DIRECTORY}/../website || exit 1 - tar cf - images | (cd ${PREFIX}/share; tar xf -) || exit 1 + cd ${BASE_DIRECTORY}/../docs + tar cf - . | (cd ${PREFIX}/share/docs; tar xf -) + cd ${BASE_DIRECTORY}/../website + tar cf - images | (cd ${PREFIX}/share; tar xf -) - cd ${BASE_DIRECTORY}/.. || exit 1 - cp NEWS README ${PREFIX} || exit 1 - cp src/binutils/COPYING ${PREFIX} || exit 1 - cp src/binutils/COPYING.LIB ${PREFIX} || exit 1 - cp src/binutils/COPYING.NEWLIB ${PREFIX} || exit 1 + cd ${BASE_DIRECTORY}/.. + cp NEWS README ${PREFIX} + cp src/binutils/COPYING ${PREFIX} + cp src/binutils/COPYING.LIB ${PREFIX} + cp src/binutils/COPYING.NEWLIB ${PREFIX} } build_all() { - build_binutils - build_import_libs - copy_w32api_headers - build_dummy_cegccdll - build_bootstrap_gcc - build_newlib - build_gcc - build_cegccdll - build_cegccthrddll - build_libstdcppdll - build_profile - build_docs - build_gdb - build_gdbstub + for ((i=0;i<$COMPONENTS_NUM;i++)); do + comp=${COMPONENTS[${i}]} + build_$comp + done } -case $BUILD_OPT in - --help) - echo "usage:" - echo "$0 [source dir] [build directory] [prefix dir] [build_opt]" - echo " " - echo "Valid build options : binutils importlibs w32api dummy_cegccdll" - echo " bootstrapgcc newlib gcc cegccdll cegccthrd libstdc++ gdb" - echo " gdbstub docs profile all" - ;; - binutils) build_binutils ;; - importlibs) build_import_libs ;; - w32api) copy_w32api_headers ;; - dummy_cegccdll) build_dummy_cegccdll ;; - bootstrapgcc) build_bootstrap_gcc ;; - newlib) build_newlib ;; - gcc) build_gcc ;; - cegccdll) build_cegccdll ;; - cegccthrd) build_cegccthrddll ;; - libstdc++) build_libstdcppdll ;; - gdb) build_gdb ;; - gdbstub) build_gdbstub ;; - docs) build_docs ;; - profile) build_profile ;; - all) build_all ;; - *) echo "Please enter a valid build option." ;; -esac +split_components=`echo "${components}" | sed -e 's/,/ /g'` +# check for valid options before trying to build them all. +eval "set -- $split_components" +while [ -n "$1" ]; do + if [ "$1" != "all" ]; then + found=false + for ((i=0;i<$COMPONENTS_NUM;i++)); do + if [ "${COMPONENTS[${i}]}" = "$1" ]; then + found=true + fi + done + if [ $found = false ] ; then + echo "Please enter a valid build option." + exit 1 + fi + fi + + shift +done + +export TARGET="arm-cegcc" +export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` +export PATH=${PREFIX}/bin:${PATH} + +echo "Building cegcc:" +echo "source: ${BASE_DIRECTORY}" +echo "building in: ${BUILD_DIR}" +echo "prefix: ${PREFIX}" +echo "components: ${components}" + +mkdir -p ${BUILD_DIR} +mkdir -p ${PREFIX} + +# Now actually build them. +eval "set -- $split_components" +while [ -n "$1" ]; do + build_${1} + shift +done + echo "" -echo "Done. --------------------------" +echo "DONE --------------------------" echo "" echo "" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2008-09-24 11:52:36
|
Revision: 1189 http://cegcc.svn.sourceforge.net/cegcc/?rev=1189&view=rev Author: pedroalves Date: 2008-09-24 11:52:20 +0000 (Wed, 24 Sep 2008) Log Message: ----------- Didn't mean to push this bit, at least without a user option... * build-cegcc.sh (build_gcc): Remove -j4. * build-mingw32ce.sh (build_gcc): Likewise. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-cegcc.sh trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2008-09-24 01:30:18 UTC (rev 1188) +++ trunk/cegcc/src/ChangeLog 2008-09-24 11:52:20 UTC (rev 1189) @@ -1,5 +1,10 @@ 2008-09-24 Pedro Alves <ped...@us...> + * build-cegcc.sh (build_gcc): Remove -j4. + * build-mingw32ce.sh (build_gcc): Likewise. + +2008-09-24 Pedro Alves <ped...@us...> + * build-cegcc.sh: Rewrite based on build-mingw32ce.sh. 2008-09-24 Pedro Alves <ped...@us...> Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2008-09-24 01:30:18 UTC (rev 1188) +++ trunk/cegcc/src/build-cegcc.sh 2008-09-24 11:52:20 UTC (rev 1189) @@ -265,7 +265,7 @@ # --disable-clocale \ - make -j4 + make make install cd ${BUILD_DIR} Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2008-09-24 01:30:18 UTC (rev 1188) +++ trunk/cegcc/src/build-mingw32ce.sh 2008-09-24 11:52:20 UTC (rev 1189) @@ -260,7 +260,7 @@ # --disable-clocale \ - make -j4 + make make install cd ${BUILD_DIR} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2008-09-25 12:00:45
|
Revision: 1191 http://cegcc.svn.sourceforge.net/cegcc/?rev=1191&view=rev Author: pedroalves Date: 2008-09-25 12:00:25 +0000 (Thu, 25 Sep 2008) Log Message: ----------- 2008-09-25 Pedro Alves <ped...@us...> * build-cegcc.sh (build_newlib, build_cegccdll) (build_cegccthrddll, build_stdcppdll, build_profile, build_docs): cd to BUILD_DIR on exit. * build-mingw32ce.sh (build_w32api, build_mingw): Likewise. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-cegcc.sh trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2008-09-25 11:19:05 UTC (rev 1190) +++ trunk/cegcc/src/ChangeLog 2008-09-25 12:00:25 UTC (rev 1191) @@ -1,3 +1,10 @@ +2008-09-25 Pedro Alves <ped...@us...> + + * build-cegcc.sh (build_newlib, build_cegccdll) + (build_cegccthrddll, build_stdcppdll, build_profile, build_docs): + cd to BUILD_DIR on exit. + * build-mingw32ce.sh (build_w32api, build_mingw): Likewise. + 2008-09-24 Pedro Alves <ped...@us...> * build-cegcc.sh (build_gcc): Remove -j4. Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2008-09-25 11:19:05 UTC (rev 1190) +++ trunk/cegcc/src/build-cegcc.sh 2008-09-25 12:00:25 UTC (rev 1191) @@ -287,7 +287,8 @@ make make install - cd ${BASE_DIRECTORY} + + cd ${BUILD_DIR} } build_cegccdll() @@ -300,6 +301,8 @@ cd ${BASE_DIRECTORY}/cegcc/cegccdll make make install + + cd ${BUILD_DIR} } build_cegccthrddll() @@ -312,6 +315,8 @@ cd ${BASE_DIRECTORY}/cegcc/cegccthrd make make install + + cd ${BUILD_DIR} } build_libstdcppdll() @@ -324,6 +329,8 @@ cd ${BASE_DIRECTORY}/cegcc/libstdc++ make make install + + cd ${BUILD_DIR} } build_profile() @@ -344,6 +351,8 @@ make make install + + cd ${BUILD_DIR} } build_docs() @@ -366,6 +375,8 @@ cp src/binutils/COPYING ${PREFIX} cp src/binutils/COPYING.LIB ${PREFIX} cp src/binutils/COPYING.NEWLIB ${PREFIX} + + cd ${BUILD_DIR} } build_all() Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2008-09-25 11:19:05 UTC (rev 1190) +++ trunk/cegcc/src/build-mingw32ce.sh 2008-09-25 12:00:25 UTC (rev 1191) @@ -218,6 +218,8 @@ make make install + + cd ${BUILD_DIR} } build_mingw() @@ -232,6 +234,8 @@ make make install + + cd ${BUILD_DIR} } build_gcc() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2008-09-25 13:11:21
|
Revision: 1192 http://cegcc.svn.sourceforge.net/cegcc/?rev=1192&view=rev Author: pedroalves Date: 2008-09-25 13:11:01 +0000 (Thu, 25 Sep 2008) Log Message: ----------- * build-cegcc.sh (COMPONENTS): Fix typo. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-cegcc.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2008-09-25 12:00:25 UTC (rev 1191) +++ trunk/cegcc/src/ChangeLog 2008-09-25 13:11:01 UTC (rev 1192) @@ -1,5 +1,9 @@ 2008-09-25 Pedro Alves <ped...@us...> + * build-cegcc.sh (COMPONENTS): Fix typo. + +2008-09-25 Pedro Alves <ped...@us...> + * build-cegcc.sh (build_newlib, build_cegccdll) (build_cegccthrddll, build_stdcppdll, build_profile, build_docs): cd to BUILD_DIR on exit. Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2008-09-25 12:00:25 UTC (rev 1191) +++ trunk/cegcc/src/build-cegcc.sh 2008-09-25 13:11:01 UTC (rev 1192) @@ -16,7 +16,7 @@ # The list of components, in build order. There's a build_FOO # function for each of these components -COMPONENTS=( binutils bootstrapgcc w32api newlib dummy_cegccdll gcc cegccdll cegccthrddll libstdcppdll profile docs ) +COMPONENTS=( binutils bootstrap_gcc w32api newlib dummy_cegccdll gcc cegccdll cegccthrddll libstdcppdll profile docs ) COMPONENTS_NUM=${#COMPONENTS} # Build comma separated list of components, for user display. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2008-09-25 13:17:06
|
Revision: 1193 http://cegcc.svn.sourceforge.net/cegcc/?rev=1193&view=rev Author: pedroalves Date: 2008-09-25 13:16:24 +0000 (Thu, 25 Sep 2008) Log Message: ----------- 2008-09-25 Pedro Alves <ped...@us...> Enable passing -jFOO to components that support it. * build-cegcc.sh: Add support for -j/--parallelism option. (build_binutils, build_bootstrap_gcc, build_w32api, build_gcc) (build_newlib, build_profile): Use it. * build-mingw32ce.sh: Add support for -j/--parallelism option. (build_binutils, build_bootstrap_gcc, build_w32api, build_mingw) (build_gcc, build_gdb, build_gdbserver, build_profile): Use it. Modified Paths: -------------- trunk/cegcc/src/build-cegcc.sh trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2008-09-25 13:11:01 UTC (rev 1192) +++ trunk/cegcc/src/build-cegcc.sh 2008-09-25 13:16:24 UTC (rev 1193) @@ -39,6 +39,8 @@ -h, --help print this help, then exit --prefix=PREFIX install toolchain in PREFIX [$ac_default_prefix] + -j, --parallelism PARALLELISM Pass PARALLELISM as -jPARALLELISM + to make invocations. --components=LIST specify which components to build valid components are: ${COMPONENTS_COMMA_LIST} [all] @@ -65,6 +67,17 @@ -help | --help | --hel | --he | -h) usage; exit 0 ;; + -j | --parallelism | --parallelis | --paralleli | --parallel \ + | --paralle | --parall | --paral | --para | --par \ + | --pa) + ac_prev=parallelism ;; + -j=* | --parallelism=* | --parallelis=* | --paralleli=* | --parallel=* \ + | --paralle=* | --parall=* | --paral=* | --para=* | --par=* \ + | --pa=*) + parallelism=$ac_optarg ;; + -j*) + parallelism=`echo $ac_option | sed 's/-j//'` ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) @@ -142,6 +155,12 @@ fi fi +if [ "x${parallelism}" != "x" ]; then + PARALLELISM="-j${parallelism}" +else + PARALLELISM= +fi + # embedded tabs in the sed below -- do not untabify components=`echo "${components}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` @@ -168,7 +187,7 @@ --target=${TARGET} \ --disable-nls - make + make ${PARALLELISM} make install cd ${BUILD_DIR} @@ -209,11 +228,11 @@ --without-newlib \ --enable-checking - make all-gcc + make ${PARALLELISM} all-gcc if [ ${gcc_src} != "gcc" ]; then - make all-target-libgcc + make ${PARALLELISM} all-target-libgcc fi make install-gcc if [ ${gcc_src} != "gcc" ]; @@ -233,7 +252,7 @@ --host=${TARGET} \ --prefix=${PREFIX} - make + make ${PARALLELISM} make install cd ${BUILD_DIR} @@ -265,7 +284,7 @@ # --disable-clocale \ - make + make ${PARALLELISM} make install cd ${BUILD_DIR} @@ -285,7 +304,7 @@ --target=${TARGET} \ --prefix=${PREFIX} - make + make ${PARALLELISM} make install cd ${BUILD_DIR} @@ -349,7 +368,7 @@ --target=${TARGET} \ --prefix=${PREFIX} - make + make ${PARALLELISM} make install cd ${BUILD_DIR} Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2008-09-25 13:11:01 UTC (rev 1192) +++ trunk/cegcc/src/build-mingw32ce.sh 2008-09-25 13:16:24 UTC (rev 1193) @@ -41,6 +41,8 @@ -h, --help print this help, then exit --prefix=PREFIX install toolchain in PREFIX [$ac_default_prefix] + -j, --parallelism PARALLELISM Pass PARALLELISM as -jPARALLELISM + to make invocations. --components=LIST specify which components to build valid components are: ${COMPONENTS_COMMA_LIST} [all] @@ -67,6 +69,17 @@ -help | --help | --hel | --he | -h) usage; exit 0 ;; + -j | --parallelism | --parallelis | --paralleli | --parallel \ + | --paralle | --parall | --paral | --para | --par \ + | --pa) + ac_prev=parallelism ;; + -j=* | --parallelism=* | --parallelis=* | --paralleli=* | --parallel=* \ + | --paralle=* | --parall=* | --paral=* | --para=* | --par=* \ + | --pa=*) + parallelism=$ac_optarg ;; + -j*) + parallelism=`echo $ac_option | sed 's/-j//'` ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) @@ -139,6 +152,12 @@ fi fi +if [ "x${parallelism}" != "x" ]; then + PARALLELISM="-j${parallelism}" +else + PARALLELISM= +fi + # embedded tabs in the sed below -- do not untabify components=`echo "${components}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` @@ -165,7 +184,7 @@ --target=${TARGET} \ --disable-nls - make + make ${PARALLELISM} make install cd ${BUILD_DIR} @@ -192,11 +211,11 @@ --without-newlib \ --enable-checking - make all-gcc + make ${PARALLELISM} all-gcc if [ ${gcc_src} != "gcc" ]; then - make all-target-libgcc + make ${PARALLELISM} all-target-libgcc fi make install-gcc if [ ${gcc_src} != "gcc" ]; @@ -216,7 +235,7 @@ --host=${TARGET} \ --prefix=${PREFIX} - make + make ${PARALLELISM} make install cd ${BUILD_DIR} @@ -232,7 +251,7 @@ --target=${TARGET} \ --prefix=${PREFIX} - make + make ${PARALLELISM} make install cd ${BUILD_DIR} @@ -264,7 +283,7 @@ # --disable-clocale \ - make + make ${PARALLELISM} make install cd ${BUILD_DIR} @@ -294,7 +313,7 @@ export CFLAGS=${PREV_CFLAGS} - make + make ${PARALLELISM} make install cd ${BUILD_DIR} @@ -315,7 +334,7 @@ --host=${TARGET} \ --prefix=${PREFIX} \ - make + make ${PARALLELISM} make install cd ${BUILD_DIR} @@ -362,7 +381,7 @@ --prefix=${PREFIX} \ || exit - make + make ${PARALLELISM} make install cd ${BUILD_DIR} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2008-09-26 02:34:18
|
Revision: 1194 http://cegcc.svn.sourceforge.net/cegcc/?rev=1194&view=rev Author: pedroalves Date: 2008-09-26 01:45:06 +0000 (Fri, 26 Sep 2008) Log Message: ----------- 2008-09-26 Pedro Alves <ped...@us...> * build-cegcc.sh (build_bootstrap_gcc): Remove unneeded target-libgcc steps. * build-mingw32ce.sh (build_bootstrap_gcc): Likewise. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-cegcc.sh trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2008-09-25 13:16:24 UTC (rev 1193) +++ trunk/cegcc/src/ChangeLog 2008-09-26 01:45:06 UTC (rev 1194) @@ -1,5 +1,23 @@ +2008-09-26 Pedro Alves <ped...@us...> + + * build-cegcc.sh (build_bootstrap_gcc): Remove unneeded + target-libgcc steps. + * build-mingw32ce.sh (build_bootstrap_gcc): Likewise. + 2008-09-25 Pedro Alves <ped...@us...> + Enable passing -jFOO to components that support it. + + * build-cegcc.sh: Add support for -j/--parallelism option. + (build_binutils, build_bootstrap_gcc, build_w32api, build_gcc) + (build_newlib, build_profile): Use it. + + * build-mingw32ce.sh: Add support for -j/--parallelism option. + (build_binutils, build_bootstrap_gcc, build_w32api, build_mingw) + (build_gcc, build_gdb, build_gdbserver, build_profile): Use it. + +2008-09-25 Pedro Alves <ped...@us...> + * build-cegcc.sh (COMPONENTS): Fix typo. 2008-09-25 Pedro Alves <ped...@us...> Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2008-09-25 13:16:24 UTC (rev 1193) +++ trunk/cegcc/src/build-cegcc.sh 2008-09-26 01:45:06 UTC (rev 1194) @@ -229,16 +229,7 @@ --enable-checking make ${PARALLELISM} all-gcc - - if [ ${gcc_src} != "gcc" ]; - then - make ${PARALLELISM} all-target-libgcc - fi make install-gcc - if [ ${gcc_src} != "gcc" ]; - then - make install-target-libgcc - fi cd ${BUILD_DIR} } Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2008-09-25 13:16:24 UTC (rev 1193) +++ trunk/cegcc/src/build-mingw32ce.sh 2008-09-26 01:45:06 UTC (rev 1194) @@ -212,16 +212,7 @@ --enable-checking make ${PARALLELISM} all-gcc - - if [ ${gcc_src} != "gcc" ]; - then - make ${PARALLELISM} all-target-libgcc - fi make install-gcc - if [ ${gcc_src} != "gcc" ]; - then - make install-target-libgcc - fi cd ${BUILD_DIR} } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2008-09-30 11:56:44
|
Revision: 1195 http://cegcc.svn.sourceforge.net/cegcc/?rev=1195&view=rev Author: pedroalves Date: 2008-09-30 11:56:35 +0000 (Tue, 30 Sep 2008) Log Message: ----------- * build-cegcc.sh (COMPONENTS_NUM): Correctly get array size. * build-mingw32ce.sh (COMPONENTS_NUM): Likewise. Modified Paths: -------------- trunk/cegcc/src/build-cegcc.sh trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2008-09-26 01:45:06 UTC (rev 1194) +++ trunk/cegcc/src/build-cegcc.sh 2008-09-30 11:56:35 UTC (rev 1195) @@ -17,7 +17,7 @@ # The list of components, in build order. There's a build_FOO # function for each of these components COMPONENTS=( binutils bootstrap_gcc w32api newlib dummy_cegccdll gcc cegccdll cegccthrddll libstdcppdll profile docs ) -COMPONENTS_NUM=${#COMPONENTS} +COMPONENTS_NUM=${#COMPONENTS[*]} # Build comma separated list of components, for user display. for ((i=0;i<$COMPONENTS_NUM;i++)); do Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2008-09-26 01:45:06 UTC (rev 1194) +++ trunk/cegcc/src/build-mingw32ce.sh 2008-09-30 11:56:35 UTC (rev 1195) @@ -19,7 +19,7 @@ # The list of components, in build order. There's a build_FOO # function for each of these components COMPONENTS=( binutils bootstrap_gcc mingw w32api gcc profile dlls docs ) -COMPONENTS_NUM=${#COMPONENTS} +COMPONENTS_NUM=${#COMPONENTS[*]} # Build comma separated list of components, for user display. for ((i=0;i<$COMPONENTS_NUM;i++)); do This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2009-02-07 22:59:08
|
Revision: 1219 http://cegcc.svn.sourceforge.net/cegcc/?rev=1219&view=rev Author: pedroalves Date: 2009-02-07 22:59:03 +0000 (Sat, 07 Feb 2009) Log Message: ----------- * VERSIONS: Update to reflect recent binutils, w32api and mingw merges from upstream. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/VERSIONS Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-02-07 22:56:57 UTC (rev 1218) +++ trunk/cegcc/src/ChangeLog 2009-02-07 22:59:03 UTC (rev 1219) @@ -1,3 +1,8 @@ +2009-02-07 Pedro Alves <ped...@us...> + + * VERSIONS: Update to reflect recent binutils, w32api and mingw + merges from upstream. + 2008-09-30 Pedro Alves <ped...@us...> * build-cegcc.sh (COMPONENTS_NUM): Correctly get array size. Modified: trunk/cegcc/src/VERSIONS =================================================================== --- trunk/cegcc/src/VERSIONS 2009-02-07 22:56:57 UTC (rev 1218) +++ trunk/cegcc/src/VERSIONS 2009-02-07 22:59:03 UTC (rev 1219) @@ -1,24 +1,24 @@ -Versions of the subdirectories below are : +Versions of the subdirectories below are: -- gcc 4.1.0 from +- gcc 4.1.0 from + ftp://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.0 gcc-core-4.1.0.tar.bz2 gcc-g++-4.1.0.tar.bz2 - Note : gcc-4.3.2 is added to the source tree as src/gcc-4.3.2, - it's not the default build yet. - - newlib 1.14.0 + ftp://sources.redhat.com/pub/newlib/index.html ftp://sources.redhat.com/pub/newlib/newlib-1.14.0.tar.gz - -- gdb : there is no longer a gdb source in our tree. - We can use the gdb version from the GNU distribution sites without change. - -- binutils from CVS (latest update: 8 January 2008) -- w32api from cvs, 5 February 2007 - cvs -d :pserver:an...@cy...:/cvs/src/winsup/w32api ... +- binutils from cvs, 4 February 2009 -- mingw from cvs, 5 February 2007 - cvs -d :pserver:an...@cy...:/cvs/src/winsup/mingw ... + cvs -d :pserver:an...@so...:/cvs/src ... + +- w32api from cvs, 6 February 2009 + + cvs -d :pserver:an...@cy...:/cvs/src/winsup/w32api ... + +- mingw from cvs, 6 February 2009 + + cvs -d :pserver:an...@cy...:/cvs/src/winsup/mingw ... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2009-02-07 23:03:38
|
Revision: 1220 http://cegcc.svn.sourceforge.net/cegcc/?rev=1220&view=rev Author: pedroalves Date: 2009-02-07 23:03:31 +0000 (Sat, 07 Feb 2009) Log Message: ----------- * scripts: New top-level directory. Move build-mingw32ce.sh and build-cegcc.sh there. Modified Paths: -------------- trunk/cegcc/src/ChangeLog Added Paths: ----------- trunk/cegcc/src/scripts/ trunk/cegcc/src/scripts/ChangeLog trunk/cegcc/src/scripts/build-cegcc.sh trunk/cegcc/src/scripts/build-mingw32ce.sh Removed Paths: ------------- trunk/cegcc/src/build-cegcc.sh trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-02-07 22:59:03 UTC (rev 1219) +++ trunk/cegcc/src/ChangeLog 2009-02-07 23:03:31 UTC (rev 1220) @@ -1,5 +1,10 @@ 2009-02-07 Pedro Alves <ped...@us...> + * scripts: New top-level directory. Move build-mingw32ce.sh and + build-cegcc.sh there. + +2009-02-07 Pedro Alves <ped...@us...> + * VERSIONS: Update to reflect recent binutils, w32api and mingw merges from upstream. Deleted: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2009-02-07 22:59:03 UTC (rev 1219) +++ trunk/cegcc/src/build-cegcc.sh 2009-02-07 23:03:31 UTC (rev 1220) @@ -1,444 +0,0 @@ -#! /usr/bin/env bash - -BASE_DIRECTORY=`dirname $0` -BASE_DIRECTORY=`(cd ${BASE_DIRECTORY}; pwd)` -ME=`basename $0` - -# -# Initializations. -# -export BUILD_DIR=`pwd` - -ac_default_prefix="/opt/cegcc" -ac_default_destdir="${BUILD_DIR}/install" - -gcc_src=gcc - -# The list of components, in build order. There's a build_FOO -# function for each of these components -COMPONENTS=( binutils bootstrap_gcc w32api newlib dummy_cegccdll gcc cegccdll cegccthrddll libstdcppdll profile docs ) -COMPONENTS_NUM=${#COMPONENTS[*]} - -# Build comma separated list of components, for user display. -for ((i=0;i<$COMPONENTS_NUM;i++)); do - if [ $i = 0 ]; then - COMPONENTS_COMMA_LIST=${COMPONENTS[${i}]} - else - COMPONENTS_COMMA_LIST="${COMPONENTS_COMMA_LIST}, ${COMPONENTS[${i}]}" - fi -done - -usage() -{ - cat << _ACEOF - -$ME builds the mingw32ce toolchain. - -Usage: $0 [OPTIONS] ... - - -h, --help print this help, then exit - --prefix=PREFIX install toolchain in PREFIX - [$ac_default_prefix] - -j, --parallelism PARALLELISM Pass PARALLELISM as -jPARALLELISM - to make invocations. - --components=LIST specify which components to build - valid components are: ${COMPONENTS_COMMA_LIST} - [all] - -Report bugs to <ceg...@li...>. -_ACEOF - -} - -ac_prev= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` - - case $ac_option in - - -help | --help | --hel | --he | -h) - usage; exit 0 ;; - - -j | --parallelism | --parallelis | --paralleli | --parallel \ - | --paralle | --parall | --paral | --para | --par \ - | --pa) - ac_prev=parallelism ;; - -j=* | --parallelism=* | --parallelis=* | --paralleli=* | --parallel=* \ - | --paralle=* | --parall=* | --paral=* | --para=* | --par=* \ - | --pa=*) - parallelism=$ac_optarg ;; - -j*) - parallelism=`echo $ac_option | sed 's/-j//'` ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -components | --components | --component | --componen | \ - --compone | --compon | --compo | --comp | --com \ - | --co | --c) - ac_prev=components ;; - -components=* | --components=* | --component=* | --componen=* \ - | --compone=* | --compon=* | --compo=* | --comp=* | --com=* \ - | --co=* | --c=*) - components=$ac_optarg ;; - - -destdir | --destdir | --destdi | --destd | --dest | --des | --de | --d) - ac_prev=destdir ;; - -destdir=* | --destdir=* | --destdi=* | --destd=* | --dest=* | --des=* | --de=* | --d=*) - destdir=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" - export $ac_envvar ;; - - *) - ;; - esac -done - -# We don't want no errors from here on. -set -e - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute paths. -for ac_var in prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -if [ "x${prefix}" != "x" ]; then - export PREFIX="${prefix}" -else - export PREFIX=${ac_default_prefix} -fi - -# Figure out what components where requested to be built. -if test x"${components+set}" != xset; then - components=all -else - if test x"${components}" = x || - test x"${components}" = xyes; - then - echo --components needs at least one argument 1>&2 - exit 1 - fi -fi - -if [ "x${parallelism}" != "x" ]; then - PARALLELISM="-j${parallelism}" -else - PARALLELISM= -fi - -# embedded tabs in the sed below -- do not untabify -components=`echo "${components}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` - -# Don't build in source directory, it will clobber things and cleanup is hard. -if [ -d ${BUILD_DIR}/.svn ]; then - echo "Don't build in a source directory, please create an empty directory and build there." - echo "Example :" - echo " mkdir build-mingw32ce" - echo " cd build-mingw32ce" - echo " sh ../build-mingw32ce.sh $@" - exit 1 -fi - -build_binutils() -{ - echo "" - echo "BUILDING BINUTILS --------------------------" - echo "" - echo "" - mkdir -p binutils - cd binutils - ${BASE_DIRECTORY}/binutils/configure \ - --prefix=${PREFIX} \ - --target=${TARGET} \ - --disable-nls - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_dummy_cegccdll() -{ - echo "" - echo "Building dummy libcegcc.dll.a ----------------------" - echo "" - echo "" - - cd ${BASE_DIRECTORY}/cegcc/fakecegccdll - - sh ./install.sh ${PREFIX} - - cd ${BUILD_DIR} -} - -build_bootstrap_gcc() -{ - mkdir -p gcc-bootstrap - cd gcc-bootstrap - - ${BASE_DIRECTORY}/${gcc_src}/configure \ - --with-gcc \ - --with-gnu-ld \ - --with-gnu-as \ - --target=${TARGET} \ - --prefix=${PREFIX} \ - --disable-threads \ - --disable-nls \ - --enable-languages=c \ - --disable-win32-registry \ - --disable-multilib \ - --disable-shared \ - --disable-interwork \ - --without-newlib \ - --enable-checking - - make ${PARALLELISM} all-gcc - make install-gcc - - cd ${BUILD_DIR} -} - -build_w32api() -{ - mkdir -p w32api - cd w32api - - ${BASE_DIRECTORY}/w32api/configure \ - --host=${TARGET} \ - --prefix=${PREFIX} - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_gcc() -{ - mkdir -p gcc - cd gcc - - ${BASE_DIRECTORY}/${gcc_src}/configure \ - --with-gcc \ - --with-gnu-ld \ - --with-gnu-as \ - --target=${TARGET} \ - --prefix=${PREFIX} \ - --enable-threads=win32 \ - --disable-nls \ - --enable-languages=c,c++ \ - --disable-win32-registry \ - --disable-multilib \ - --disable-interwork \ - --without-newlib \ - --enable-checking \ - --with-headers - -# we build libstdc++ as dll, so we don't need this. -# --enable-fully-dynamic-string \ - -# --disable-clocale \ - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_newlib() -{ - echo "" - echo "Building newlib. --------------------------" - echo "" - echo "" - - mkdir -p newlib - cd newlib - - ${BASE_DIRECTORY}/newlib/configure \ - --target=${TARGET} \ - --prefix=${PREFIX} - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_cegccdll() -{ - echo "" - echo "Building cegcc.dll --------------------------" - echo "" - echo "" - - cd ${BASE_DIRECTORY}/cegcc/cegccdll - make - make install - - cd ${BUILD_DIR} -} - -build_cegccthrddll() -{ - echo "" - echo "Building cegccthrd.dll --------------------------" - echo "" - echo "" - - cd ${BASE_DIRECTORY}/cegcc/cegccthrd - make - make install - - cd ${BUILD_DIR} -} - -build_libstdcppdll() -{ - echo "" - echo "Building libstdc++.dll --------------------------" - echo "" - echo "" - - cd ${BASE_DIRECTORY}/cegcc/libstdc++ - make - make install - - cd ${BUILD_DIR} -} - -build_profile() -{ - echo "" - echo "BUILDING profiling libraries --------------------------" - echo "" - echo "" - - mkdir -p ${BUILD_DIR}/profile - cd ${BUILD_DIR}/profile - - ${BASE_DIRECTORY}/profile/configure \ - --build=${BUILD} \ - --host=${TARGET} \ - --target=${TARGET} \ - --prefix=${PREFIX} - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_docs() -{ - echo "" - echo "INSTALLING documentation --------------------------" - echo "" - echo "" - - mkdir -p ${PREFIX}/share/docs - mkdir -p ${PREFIX}/share/images - - cd ${BASE_DIRECTORY}/../docs - tar cf - . | (cd ${PREFIX}/share/docs; tar xf -) - cd ${BASE_DIRECTORY}/../website - tar cf - images | (cd ${PREFIX}/share; tar xf -) - - cd ${BASE_DIRECTORY}/.. - cp NEWS README ${PREFIX} - cp src/binutils/COPYING ${PREFIX} - cp src/binutils/COPYING.LIB ${PREFIX} - cp src/binutils/COPYING.NEWLIB ${PREFIX} - - cd ${BUILD_DIR} -} - -build_all() -{ - for ((i=0;i<$COMPONENTS_NUM;i++)); do - comp=${COMPONENTS[${i}]} - build_$comp - done -} - -split_components=`echo "${components}" | sed -e 's/,/ /g'` - -# check for valid options before trying to build them all. -eval "set -- $split_components" -while [ -n "$1" ]; do - if [ "$1" != "all" ]; then - found=false - for ((i=0;i<$COMPONENTS_NUM;i++)); do - if [ "${COMPONENTS[${i}]}" = "$1" ]; then - found=true - fi - done - if [ $found = false ] ; then - echo "Please enter a valid build option." - exit 1 - fi - fi - - shift -done - -export TARGET="arm-cegcc" -export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` -export PATH=${PREFIX}/bin:${PATH} - -echo "Building cegcc:" -echo "source: ${BASE_DIRECTORY}" -echo "building in: ${BUILD_DIR}" -echo "prefix: ${PREFIX}" -echo "components: ${components}" - -mkdir -p ${BUILD_DIR} -mkdir -p ${PREFIX} - -# Now actually build them. -eval "set -- $split_components" -while [ -n "$1" ]; do - build_${1} - shift -done - -echo "" -echo "DONE --------------------------" -echo "" -echo "" Deleted: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2009-02-07 22:59:03 UTC (rev 1219) +++ trunk/cegcc/src/build-mingw32ce.sh 2009-02-07 23:03:31 UTC (rev 1220) @@ -1,468 +0,0 @@ -#! /usr/bin/env bash - -BASE_DIRECTORY=`dirname $0` -BASE_DIRECTORY=`(cd ${BASE_DIRECTORY}; pwd)` -ME=`basename $0` - -# FIXME: some components need this (mingwdll), but they shouldn't. -export BASE_DIRECTORY - -# -# Initializations. -# -export BUILD_DIR=`pwd` - -ac_default_prefix="/opt/mingw32ce" - -gcc_src=gcc - -# The list of components, in build order. There's a build_FOO -# function for each of these components -COMPONENTS=( binutils bootstrap_gcc mingw w32api gcc profile dlls docs ) -COMPONENTS_NUM=${#COMPONENTS[*]} - -# Build comma separated list of components, for user display. -for ((i=0;i<$COMPONENTS_NUM;i++)); do - if [ $i = 0 ]; then - COMPONENTS_COMMA_LIST=${COMPONENTS[${i}]} - else - COMPONENTS_COMMA_LIST="${COMPONENTS_COMMA_LIST}, ${COMPONENTS[${i}]}" - fi -done - -usage() -{ - cat << _ACEOF - -$ME builds the mingw32ce toolchain. - -Usage: $0 [OPTIONS] ... - - -h, --help print this help, then exit - --prefix=PREFIX install toolchain in PREFIX - [$ac_default_prefix] - -j, --parallelism PARALLELISM Pass PARALLELISM as -jPARALLELISM - to make invocations. - --components=LIST specify which components to build - valid components are: ${COMPONENTS_COMMA_LIST} - [all] - -Report bugs to <ceg...@li...>. -_ACEOF - -} - -ac_prev= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` - - case $ac_option in - - -help | --help | --hel | --he | -h) - usage; exit 0 ;; - - -j | --parallelism | --parallelis | --paralleli | --parallel \ - | --paralle | --parall | --paral | --para | --par \ - | --pa) - ac_prev=parallelism ;; - -j=* | --parallelism=* | --parallelis=* | --paralleli=* | --parallel=* \ - | --paralle=* | --parall=* | --paral=* | --para=* | --par=* \ - | --pa=*) - parallelism=$ac_optarg ;; - -j*) - parallelism=`echo $ac_option | sed 's/-j//'` ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -components | --components | --component | --componen | \ - --compone | --compon | --compo | --comp | --com \ - | --co | --c) - ac_prev=components ;; - -components=* | --components=* | --component=* | --componen=* \ - | --compone=* | --compon=* | --compo=* | --comp=* | --com=* \ - | --co=* | --c=*) - components=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" - export $ac_envvar ;; - - *) - ;; - esac -done - -# We don't want no errors from here on. -set -e - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute paths. -for ac_var in prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -if [ "x${prefix}" != "x" ]; then - export PREFIX="${prefix}" -else - export PREFIX=${ac_default_prefix} -fi - -# Figure out what components where requested to be built. -if test x"${components+set}" != xset; then - components=all -else - if test x"${components}" = x || - test x"${components}" = xyes; - then - echo --components needs at least one argument 1>&2 - exit 1 - fi -fi - -if [ "x${parallelism}" != "x" ]; then - PARALLELISM="-j${parallelism}" -else - PARALLELISM= -fi - -# embedded tabs in the sed below -- do not untabify -components=`echo "${components}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` - -# Don't build in source directory, it will clobber things and cleanup is hard. -if [ -d ${BUILD_DIR}/.svn ]; then - echo "Don't build in a source directory, please create an empty directory and build there." - echo "Example :" - echo " mkdir build-mingw32ce" - echo " cd build-mingw32ce" - echo " sh ../build-mingw32ce.sh $@" - exit 1 -fi - -build_binutils() -{ - echo "" - echo "BUILDING BINUTILS --------------------------" - echo "" - echo "" - mkdir -p binutils - cd binutils - ${BASE_DIRECTORY}/binutils/configure \ - --prefix=${PREFIX} \ - --target=${TARGET} \ - --disable-nls - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_bootstrap_gcc() -{ - mkdir -p gcc-bootstrap - cd gcc-bootstrap - - ${BASE_DIRECTORY}/${gcc_src}/configure \ - --with-gcc \ - --with-gnu-ld \ - --with-gnu-as \ - --target=${TARGET} \ - --prefix=${PREFIX} \ - --disable-threads \ - --disable-nls \ - --enable-languages=c \ - --disable-win32-registry \ - --disable-multilib \ - --disable-shared \ - --disable-interwork \ - --without-newlib \ - --enable-checking - - make ${PARALLELISM} all-gcc - make install-gcc - - cd ${BUILD_DIR} -} - -build_w32api() -{ - mkdir -p w32api - cd w32api - - ${BASE_DIRECTORY}/w32api/configure \ - --host=${TARGET} \ - --prefix=${PREFIX} - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_mingw() -{ - mkdir -p mingw - cd mingw - ${BASE_DIRECTORY}/mingw/configure \ - --build=${BUILD} \ - --host=${TARGET} \ - --target=${TARGET} \ - --prefix=${PREFIX} - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_gcc() -{ - mkdir -p gcc - cd gcc - - ${BASE_DIRECTORY}/${gcc_src}/configure \ - --with-gcc \ - --with-gnu-ld \ - --with-gnu-as \ - --target=${TARGET} \ - --prefix=${PREFIX} \ - --enable-threads=win32 \ - --disable-nls \ - --enable-languages=c,c++ \ - --disable-win32-registry \ - --disable-multilib \ - --disable-interwork \ - --without-newlib \ - --enable-checking \ - --with-headers - -# we build libstdc++ as dll, so we don't need this. -# --enable-fully-dynamic-string \ - -# --disable-clocale \ - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_gdb() -{ - echo "" - echo "BUILDING GDB --------------------------" - echo "" - echo "" - - mkdir -p gdb - cd gdb - - ${BASE_DIRECTORY}/gdb/configure \ - --with-gcc \ - --with-gnu-ld \ - --with-gnu-as \ - --target=${TARGET} \ - --prefix=${PREFIX} \ - --disable-nls \ - --disable-win32-registry \ - --disable-multilib \ - --disable-interwork \ - --enable-checking - - export CFLAGS=${PREV_CFLAGS} - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_gdbserver() -{ - echo "" - echo "BUILDING gdbserver --------------------------" - echo "" - echo "" - - mkdir -p gdbserver - cd gdbserver - - ${BASE_DIRECTORY}/gdb/gdbserver/configure \ - --target=${TARGET} \ - --host=${TARGET} \ - --prefix=${PREFIX} \ - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -build_docs() -{ - echo "" - echo "INSTALLING documentation --------------------------" - echo "" - echo "" - - mkdir -p ${PREFIX}/share/docs - mkdir -p ${PREFIX}/share/images - - cd ${BASE_DIRECTORY}/../docs - tar cf - . | (cd ${PREFIX}/share/docs; tar xf -) - cd ${BASE_DIRECTORY}/../website - tar cf - images | (cd ${PREFIX}/share; tar xf -) - - cd ${BASE_DIRECTORY}/.. - cp NEWS README ${PREFIX} - cp src/binutils/COPYING ${PREFIX} - cp src/binutils/COPYING.LIB ${PREFIX} - cp src/newlib/COPYING.NEWLIB ${PREFIX} - - cd ${BUILD_DIR} -} - -build_profile() -{ - echo "" - echo "BUILDING profiling libraries --------------------------" - echo "" - echo "" - - mkdir -p profile - cd profile - - ${BASE_DIRECTORY}/profile/configure \ - --build=${BUILD} \ - --host=${TARGET} \ - --target=${TARGET} \ - --prefix=${PREFIX} \ - || exit - - make ${PARALLELISM} - make install - - cd ${BUILD_DIR} -} - -obuild_dlls() -{ - echo "" - echo "BUILDING DLL libraries --------------------------" - echo "" - echo "" - - cd ${BUILD_DIR} - - mkdir -p dll - cd dll - - cd ${BASE_DIRECTORY} - ${BASE_DIRECTORY}/build-mingw32ce-dlls.sh - - cd ${BUILD_DIR} -} - -build_dlls() -{ - echo "" - echo "BUILDING DLL libraries --------------------------" - echo "" - echo "" - - cd ${BUILD_DIR} - - cd ${BASE_DIRECTORY}/mingwdll - make - make install - - cd ${BUILD_DIR} -} - -build_all() -{ - for ((i=0;i<$COMPONENTS_NUM;i++)); do - comp=${COMPONENTS[${i}]} - build_$comp - done -} - -split_components=`echo "${components}" | sed -e 's/,/ /g'` - -# check for valid options before trying to build them all. -eval "set -- $split_components" -while [ -n "$1" ]; do - if [ "$1" != "all" ]; then - found=false - for ((i=0;i<$COMPONENTS_NUM;i++)); do - if [ "${COMPONENTS[${i}]}" = "$1" ]; then - found=true - fi - done - if [ $found = false ] ; then - echo "Please enter a valid build option." - exit 1 - fi - fi - - shift -done - -export TARGET="arm-mingw32ce" -#export TARGET="arm-wince-mingw32ce" -export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` -export PATH=${PREFIX}/bin:${PATH} - -echo "Building mingw32ce:" -echo "source: ${BASE_DIRECTORY}" -echo "building in: ${BUILD_DIR}" -echo "prefix: ${PREFIX}" -echo "components: ${components}" - -mkdir -p ${BUILD_DIR} -mkdir -p ${PREFIX} - -# Now actually build them. -eval "set -- $split_components" -while [ -n "$1" ]; do - build_${1} - shift -done - -echo "" -echo "DONE --------------------------" -echo "" -echo "" Property changes on: trunk/cegcc/src/scripts/ChangeLog ___________________________________________________________________ Added: svn:eol-style + native Copied: trunk/cegcc/src/scripts/build-cegcc.sh (from rev 1195, trunk/cegcc/src/build-cegcc.sh) =================================================================== --- trunk/cegcc/src/scripts/build-cegcc.sh (rev 0) +++ trunk/cegcc/src/scripts/build-cegcc.sh 2009-02-07 23:03:31 UTC (rev 1220) @@ -0,0 +1,444 @@ +#! /usr/bin/env bash + +BASE_DIRECTORY=`dirname $0` +BASE_DIRECTORY=`(cd ${BASE_DIRECTORY}; pwd)` +ME=`basename $0` + +# +# Initializations. +# +export BUILD_DIR=`pwd` + +ac_default_prefix="/opt/cegcc" +ac_default_destdir="${BUILD_DIR}/install" + +gcc_src=gcc + +# The list of components, in build order. There's a build_FOO +# function for each of these components +COMPONENTS=( binutils bootstrap_gcc w32api newlib dummy_cegccdll gcc cegccdll cegccthrddll libstdcppdll profile docs ) +COMPONENTS_NUM=${#COMPONENTS[*]} + +# Build comma separated list of components, for user display. +for ((i=0;i<$COMPONENTS_NUM;i++)); do + if [ $i = 0 ]; then + COMPONENTS_COMMA_LIST=${COMPONENTS[${i}]} + else + COMPONENTS_COMMA_LIST="${COMPONENTS_COMMA_LIST}, ${COMPONENTS[${i}]}" + fi +done + +usage() +{ + cat << _ACEOF + +$ME builds the mingw32ce toolchain. + +Usage: $0 [OPTIONS] ... + + -h, --help print this help, then exit + --prefix=PREFIX install toolchain in PREFIX + [$ac_default_prefix] + -j, --parallelism PARALLELISM Pass PARALLELISM as -jPARALLELISM + to make invocations. + --components=LIST specify which components to build + valid components are: ${COMPONENTS_COMMA_LIST} + [all] + +Report bugs to <ceg...@li...>. +_ACEOF + +} + +ac_prev= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + case $ac_option in + + -help | --help | --hel | --he | -h) + usage; exit 0 ;; + + -j | --parallelism | --parallelis | --paralleli | --parallel \ + | --paralle | --parall | --paral | --para | --par \ + | --pa) + ac_prev=parallelism ;; + -j=* | --parallelism=* | --parallelis=* | --paralleli=* | --parallel=* \ + | --paralle=* | --parall=* | --paral=* | --para=* | --par=* \ + | --pa=*) + parallelism=$ac_optarg ;; + -j*) + parallelism=`echo $ac_option | sed 's/-j//'` ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -components | --components | --component | --componen | \ + --compone | --compon | --compo | --comp | --com \ + | --co | --c) + ac_prev=components ;; + -components=* | --components=* | --component=* | --componen=* \ + | --compone=* | --compon=* | --compo=* | --comp=* | --com=* \ + | --co=* | --c=*) + components=$ac_optarg ;; + + -destdir | --destdir | --destdi | --destd | --dest | --des | --de | --d) + ac_prev=destdir ;; + -destdir=* | --destdir=* | --destdi=* | --destd=* | --dest=* | --des=* | --de=* | --d=*) + destdir=$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + + *) + ;; + esac +done + +# We don't want no errors from here on. +set -e + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +if [ "x${prefix}" != "x" ]; then + export PREFIX="${prefix}" +else + export PREFIX=${ac_default_prefix} +fi + +# Figure out what components where requested to be built. +if test x"${components+set}" != xset; then + components=all +else + if test x"${components}" = x || + test x"${components}" = xyes; + then + echo --components needs at least one argument 1>&2 + exit 1 + fi +fi + +if [ "x${parallelism}" != "x" ]; then + PARALLELISM="-j${parallelism}" +else + PARALLELISM= +fi + +# embedded tabs in the sed below -- do not untabify +components=`echo "${components}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` + +# Don't build in source directory, it will clobber things and cleanup is hard. +if [ -d ${BUILD_DIR}/.svn ]; then + echo "Don't build in a source directory, please create an empty directory and build there." + echo "Example :" + echo " mkdir build-mingw32ce" + echo " cd build-mingw32ce" + echo " sh ../build-mingw32ce.sh $@" + exit 1 +fi + +build_binutils() +{ + echo "" + echo "BUILDING BINUTILS --------------------------" + echo "" + echo "" + mkdir -p binutils + cd binutils + ${BASE_DIRECTORY}/binutils/configure \ + --prefix=${PREFIX} \ + --target=${TARGET} \ + --disable-nls + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_dummy_cegccdll() +{ + echo "" + echo "Building dummy libcegcc.dll.a ----------------------" + echo "" + echo "" + + cd ${BASE_DIRECTORY}/cegcc/fakecegccdll + + sh ./install.sh ${PREFIX} + + cd ${BUILD_DIR} +} + +build_bootstrap_gcc() +{ + mkdir -p gcc-bootstrap + cd gcc-bootstrap + + ${BASE_DIRECTORY}/${gcc_src}/configure \ + --with-gcc \ + --with-gnu-ld \ + --with-gnu-as \ + --target=${TARGET} \ + --prefix=${PREFIX} \ + --disable-threads \ + --disable-nls \ + --enable-languages=c \ + --disable-win32-registry \ + --disable-multilib \ + --disable-shared \ + --disable-interwork \ + --without-newlib \ + --enable-checking + + make ${PARALLELISM} all-gcc + make install-gcc + + cd ${BUILD_DIR} +} + +build_w32api() +{ + mkdir -p w32api + cd w32api + + ${BASE_DIRECTORY}/w32api/configure \ + --host=${TARGET} \ + --prefix=${PREFIX} + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_gcc() +{ + mkdir -p gcc + cd gcc + + ${BASE_DIRECTORY}/${gcc_src}/configure \ + --with-gcc \ + --with-gnu-ld \ + --with-gnu-as \ + --target=${TARGET} \ + --prefix=${PREFIX} \ + --enable-threads=win32 \ + --disable-nls \ + --enable-languages=c,c++ \ + --disable-win32-registry \ + --disable-multilib \ + --disable-interwork \ + --without-newlib \ + --enable-checking \ + --with-headers + +# we build libstdc++ as dll, so we don't need this. +# --enable-fully-dynamic-string \ + +# --disable-clocale \ + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_newlib() +{ + echo "" + echo "Building newlib. --------------------------" + echo "" + echo "" + + mkdir -p newlib + cd newlib + + ${BASE_DIRECTORY}/newlib/configure \ + --target=${TARGET} \ + --prefix=${PREFIX} + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_cegccdll() +{ + echo "" + echo "Building cegcc.dll --------------------------" + echo "" + echo "" + + cd ${BASE_DIRECTORY}/cegcc/cegccdll + make + make install + + cd ${BUILD_DIR} +} + +build_cegccthrddll() +{ + echo "" + echo "Building cegccthrd.dll --------------------------" + echo "" + echo "" + + cd ${BASE_DIRECTORY}/cegcc/cegccthrd + make + make install + + cd ${BUILD_DIR} +} + +build_libstdcppdll() +{ + echo "" + echo "Building libstdc++.dll --------------------------" + echo "" + echo "" + + cd ${BASE_DIRECTORY}/cegcc/libstdc++ + make + make install + + cd ${BUILD_DIR} +} + +build_profile() +{ + echo "" + echo "BUILDING profiling libraries --------------------------" + echo "" + echo "" + + mkdir -p ${BUILD_DIR}/profile + cd ${BUILD_DIR}/profile + + ${BASE_DIRECTORY}/profile/configure \ + --build=${BUILD} \ + --host=${TARGET} \ + --target=${TARGET} \ + --prefix=${PREFIX} + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_docs() +{ + echo "" + echo "INSTALLING documentation --------------------------" + echo "" + echo "" + + mkdir -p ${PREFIX}/share/docs + mkdir -p ${PREFIX}/share/images + + cd ${BASE_DIRECTORY}/../docs + tar cf - . | (cd ${PREFIX}/share/docs; tar xf -) + cd ${BASE_DIRECTORY}/../website + tar cf - images | (cd ${PREFIX}/share; tar xf -) + + cd ${BASE_DIRECTORY}/.. + cp NEWS README ${PREFIX} + cp src/binutils/COPYING ${PREFIX} + cp src/binutils/COPYING.LIB ${PREFIX} + cp src/binutils/COPYING.NEWLIB ${PREFIX} + + cd ${BUILD_DIR} +} + +build_all() +{ + for ((i=0;i<$COMPONENTS_NUM;i++)); do + comp=${COMPONENTS[${i}]} + build_$comp + done +} + +split_components=`echo "${components}" | sed -e 's/,/ /g'` + +# check for valid options before trying to build them all. +eval "set -- $split_components" +while [ -n "$1" ]; do + if [ "$1" != "all" ]; then + found=false + for ((i=0;i<$COMPONENTS_NUM;i++)); do + if [ "${COMPONENTS[${i}]}" = "$1" ]; then + found=true + fi + done + if [ $found = false ] ; then + echo "Please enter a valid build option." + exit 1 + fi + fi + + shift +done + +export TARGET="arm-cegcc" +export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` +export PATH=${PREFIX}/bin:${PATH} + +echo "Building cegcc:" +echo "source: ${BASE_DIRECTORY}" +echo "building in: ${BUILD_DIR}" +echo "prefix: ${PREFIX}" +echo "components: ${components}" + +mkdir -p ${BUILD_DIR} +mkdir -p ${PREFIX} + +# Now actually build them. +eval "set -- $split_components" +while [ -n "$1" ]; do + build_${1} + shift +done + +echo "" +echo "DONE --------------------------" +echo "" +echo "" Copied: trunk/cegcc/src/scripts/build-mingw32ce.sh (from rev 1195, trunk/cegcc/src/build-mingw32ce.sh) =================================================================== --- trunk/cegcc/src/scripts/build-mingw32ce.sh (rev 0) +++ trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-02-07 23:03:31 UTC (rev 1220) @@ -0,0 +1,468 @@ +#! /usr/bin/env bash + +BASE_DIRECTORY=`dirname $0` +BASE_DIRECTORY=`(cd ${BASE_DIRECTORY}; pwd)` +ME=`basename $0` + +# FIXME: some components need this (mingwdll), but they shouldn't. +export BASE_DIRECTORY + +# +# Initializations. +# +export BUILD_DIR=`pwd` + +ac_default_prefix="/opt/mingw32ce" + +gcc_src=gcc + +# The list of components, in build order. There's a build_FOO +# function for each of these components +COMPONENTS=( binutils bootstrap_gcc mingw w32api gcc profile dlls docs ) +COMPONENTS_NUM=${#COMPONENTS[*]} + +# Build comma separated list of components, for user display. +for ((i=0;i<$COMPONENTS_NUM;i++)); do + if [ $i = 0 ]; then + COMPONENTS_COMMA_LIST=${COMPONENTS[${i}]} + else + COMPONENTS_COMMA_LIST="${COMPONENTS_COMMA_LIST}, ${COMPONENTS[${i}]}" + fi +done + +usage() +{ + cat << _ACEOF + +$ME builds the mingw32ce toolchain. + +Usage: $0 [OPTIONS] ... + + -h, --help print this help, then exit + --prefix=PREFIX install toolchain in PREFIX + [$ac_default_prefix] + -j, --parallelism PARALLELISM Pass PARALLELISM as -jPARALLELISM + to make invocations. + --components=LIST specify which components to build + valid components are: ${COMPONENTS_COMMA_LIST} + [all] + +Report bugs to <ceg...@li...>. +_ACEOF + +} + +ac_prev= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + case $ac_option in + + -help | --help | --hel | --he | -h) + usage; exit 0 ;; + + -j | --parallelism | --parallelis | --paralleli | --parallel \ + | --paralle | --parall | --paral | --para | --par \ + | --pa) + ac_prev=parallelism ;; + -j=* | --parallelism=* | --parallelis=* | --paralleli=* | --parallel=* \ + | --paralle=* | --parall=* | --paral=* | --para=* | --par=* \ + | --pa=*) + parallelism=$ac_optarg ;; + -j*) + parallelism=`echo $ac_option | sed 's/-j//'` ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -components | --components | --component | --componen | \ + --compone | --compon | --compo | --comp | --com \ + | --co | --c) + ac_prev=components ;; + -components=* | --components=* | --component=* | --componen=* \ + | --compone=* | --compon=* | --compo=* | --comp=* | --com=* \ + | --co=* | --c=*) + components=$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + + *) + ;; + esac +done + +# We don't want no errors from here on. +set -e + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +if [ "x${prefix}" != "x" ]; then + export PREFIX="${prefix}" +else + export PREFIX=${ac_default_prefix} +fi + +# Figure out what components where requested to be built. +if test x"${components+set}" != xset; then + components=all +else + if test x"${components}" = x || + test x"${components}" = xyes; + then + echo --components needs at least one argument 1>&2 + exit 1 + fi +fi + +if [ "x${parallelism}" != "x" ]; then + PARALLELISM="-j${parallelism}" +else + PARALLELISM= +fi + +# embedded tabs in the sed below -- do not untabify +components=`echo "${components}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` + +# Don't build in source directory, it will clobber things and cleanup is hard. +if [ -d ${BUILD_DIR}/.svn ]; then + echo "Don't build in a source directory, please create an empty directory and build there." + echo "Example :" + echo " mkdir build-mingw32ce" + echo " cd build-mingw32ce" + echo " sh ../build-mingw32ce.sh $@" + exit 1 +fi + +build_binutils() +{ + echo "" + echo "BUILDING BINUTILS --------------------------" + echo "" + echo "" + mkdir -p binutils + cd binutils + ${BASE_DIRECTORY}/binutils/configure \ + --prefix=${PREFIX} \ + --target=${TARGET} \ + --disable-nls + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_bootstrap_gcc() +{ + mkdir -p gcc-bootstrap + cd gcc-bootstrap + + ${BASE_DIRECTORY}/${gcc_src}/configure \ + --with-gcc \ + --with-gnu-ld \ + --with-gnu-as \ + --target=${TARGET} \ + --prefix=${PREFIX} \ + --disable-threads \ + --disable-nls \ + --enable-languages=c \ + --disable-win32-registry \ + --disable-multilib \ + --disable-shared \ + --disable-interwork \ + --without-newlib \ + --enable-checking + + make ${PARALLELISM} all-gcc + make install-gcc + + cd ${BUILD_DIR} +} + +build_w32api() +{ + mkdir -p w32api + cd w32api + + ${BASE_DIRECTORY}/w32api/configure \ + --host=${TARGET} \ + --prefix=${PREFIX} + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_mingw() +{ + mkdir -p mingw + cd mingw + ${BASE_DIRECTORY}/mingw/configure \ + --build=${BUILD} \ + --host=${TARGET} \ + --target=${TARGET} \ + --prefix=${PREFIX} + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_gcc() +{ + mkdir -p gcc + cd gcc + + ${BASE_DIRECTORY}/${gcc_src}/configure \ + --with-gcc \ + --with-gnu-ld \ + --with-gnu-as \ + --target=${TARGET} \ + --prefix=${PREFIX} \ + --enable-threads=win32 \ + --disable-nls \ + --enable-languages=c,c++ \ + --disable-win32-registry \ + --disable-multilib \ + --disable-interwork \ + --without-newlib \ + --enable-checking \ + --with-headers + +# we build libstdc++ as dll, so we don't need this. +# --enable-fully-dynamic-string \ + +# --disable-clocale \ + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_gdb() +{ + echo "" + echo "BUILDING GDB --------------------------" + echo "" + echo "" + + mkdir -p gdb + cd gdb + + ${BASE_DIRECTORY}/gdb/configure \ + --with-gcc \ + --with-gnu-ld \ + --with-gnu-as \ + --target=${TARGET} \ + --prefix=${PREFIX} \ + --disable-nls \ + --disable-win32-registry \ + --disable-multilib \ + --disable-interwork \ + --enable-checking + + export CFLAGS=${PREV_CFLAGS} + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_gdbserver() +{ + echo "" + echo "BUILDING gdbserver --------------------------" + echo "" + echo "" + + mkdir -p gdbserver + cd gdbserver + + ${BASE_DIRECTORY}/gdb/gdbserver/configure \ + --target=${TARGET} \ + --host=${TARGET} \ + --prefix=${PREFIX} \ + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +build_docs() +{ + echo "" + echo "INSTALLING documentation --------------------------" + echo "" + echo "" + + mkdir -p ${PREFIX}/share/docs + mkdir -p ${PREFIX}/share/images + + cd ${BASE_DIRECTORY}/../docs + tar cf - . | (cd ${PREFIX}/share/docs; tar xf -) + cd ${BASE_DIRECTORY}/../website + tar cf - images | (cd ${PREFIX}/share; tar xf -) + + cd ${BASE_DIRECTORY}/.. + cp NEWS README ${PREFIX} + cp src/binutils/COPYING ${PREFIX} + cp src/binutils/COPYING.LIB ${PREFIX} + cp src/newlib/COPYING.NEWLIB ${PREFIX} + + cd ${BUILD_DIR} +} + +build_profile() +{ + echo "" + echo "BUILDING profiling libraries --------------------------" + echo "" + echo "" + + mkdir -p profile + cd profile + + ${BASE_DIRECTORY}/profile/configure \ + --build=${BUILD} \ + --host=${TARGET} \ + --target=${TARGET} \ + --prefix=${PREFIX} \ + || exit + + make ${PARALLELISM} + make install + + cd ${BUILD_DIR} +} + +obuild_dlls() +{ + echo "" + echo "BUILDING DLL libraries --------------------------" + echo "" + echo "" + + cd ${BUILD_DIR} + + mkdir -p dll + cd dll + + cd ${BASE_DIRECTORY} + ${BASE_DIRECTORY}/build-mingw32ce-dlls.sh + + cd ${BUILD_DIR} +} + +build_dlls() +{ + echo "" + echo "BUILDING DLL libraries --------------------------" + echo "" + echo "" + + cd ${BUILD_DIR} + + cd ${BASE_DIRECTORY}/mingwdll + make + make install + + cd ${BUILD_DIR} +} + +build_all() +{ + for ((i=0;i<$COMPONENTS_NUM;i++)); do + comp=${COMPONENTS[${i}]} + build_$comp + done +} + +split_components=`echo "${components}" | sed -e 's/,/ /g'` + +# check for valid options before trying to build them all. +eval "set -- $split_components" +while [ -n "$1" ]; do + if [ "$1" != "all" ]; then + found=false + for ((i=0;i<$COMPONENTS_NUM;i++)); do + if [ "${COMPONENTS[${i}]}" = "$1" ]; then + found=true + fi + done + if [ $found = false ] ; then + echo "Please enter a valid build option." + exit 1 + fi + fi + + shift +done + +export TARGET="arm-mingw32ce" +#export TARGET="arm-wince-mingw32ce" +export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` +export PATH=${PREFIX}/bin:${PATH} + +echo "Building mingw32ce:" +echo "source: ${BASE_DIRECTORY}" +echo "building in: ${BUILD_DIR}" +echo "prefix: ${PREFIX}" +echo "components: ${components}" + +mkdir -p ${BUILD_DIR} +mkdir -p ${PREFIX} + +# Now actually build them. +eval "set -- $split_components" +while [ -n "$1" ]; do + build_${1} + shift +done + +echo "" +echo "DONE --------------------------" +echo "" +echo "" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2009-02-07 23:05:44
|
Revision: 1221 http://cegcc.svn.sourceforge.net/cegcc/?rev=1221&view=rev Author: pedroalves Date: 2009-02-07 23:05:37 +0000 (Sat, 07 Feb 2009) Log Message: ----------- Also move build-mingw32ce-dlls.sh. Modified Paths: -------------- trunk/cegcc/src/ChangeLog Added Paths: ----------- trunk/cegcc/src/scripts/build-mingw32ce-dlls.sh Removed Paths: ------------- trunk/cegcc/src/build-mingw32ce-dlls.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-02-07 23:03:31 UTC (rev 1220) +++ trunk/cegcc/src/ChangeLog 2009-02-07 23:05:37 UTC (rev 1221) @@ -1,7 +1,7 @@ 2009-02-07 Pedro Alves <ped...@us...> - * scripts: New top-level directory. Move build-mingw32ce.sh and - build-cegcc.sh there. + * scripts: New top-level directory. Move build-mingw32ce.sh, + build-cegcc.sh, and build-mingw32ce-dlls.sh there. 2009-02-07 Pedro Alves <ped...@us...> Deleted: trunk/cegcc/src/build-mingw32ce-dlls.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce-dlls.sh 2009-02-07 23:03:31 UTC (rev 1220) +++ trunk/cegcc/src/build-mingw32ce-dlls.sh 2009-02-07 23:05:37 UTC (rev 1221) @@ -1,90 +0,0 @@ -#!/bin/bash -x - -# Based on script from: -# http://cygwin.com/ml/cygwin-apps/2006-05/msg00044.html - -TARGET=arm-mingw32ce -PREFIX=/opt/mingw32ce -GCC_VERSION=4.1.0 - -export PATH=${PREFIX}/bin:${PATH} - -srcdir=`cd gcc; pwd` -builddir=`cd build-mingw32ce; pwd` - -pushd ${PREFIX}/${TARGET}/lib - -LIBVER=$(grep libtool_VERSION= ${srcdir}/libstdc++-v3/configure | sed -e 's/libtool_VERSION=//') -LIBVER_c=$(echo $LIBVER | awk -F: '{print $1}') -LIBVER_r=$(echo $LIBVER | awk -F: '{print $2}') -LIBVER_a=$(echo $LIBVER | awk -F: '{print $3}') -LIBSTDCPP_DLLVER=$(($LIBVER_c - $LIBVER_a)) - -## no need for a DLLVER for libgcc; it's guaranteed to only add functions, -## never remove or change thier signature. So it'll always be backwards-compatible. - -## It's probably not necessary, but we'll use the LIBSTDCPP_DLLVER for -## libsupc++ as well (after all, all of libsupc++ appears IN libstdc++ -## so if libsupc++ changes in a backwards-non-compatible way, then libstdc++ -## will, too -- and the gcc folks will modify its LIBVER. The downside here -## is that if libsupc++ is unchanged or remains backwards compatible, but -## some other part of libstdc++ changes badly -- we will unnecessarily bump -## libsupc++'s DLLNUM. 'sokay. - -pushd ${PREFIX}/lib/gcc/${TARGET}/${GCC_VERSION} -${TARGET}-dlltool --output-def libgcc.def --export-all libgcc.a -${builddir}/gcc/gcc/xgcc -shared -olibgcc.dll \ - -Wl,--out-implib,libgcc.dll.a \ - ./libgcc.def \ - ./libgcc.a -#no versioned implib, no need to ln -popd - -${TARGET}-dlltool --output-def libsupc++.def --export-all libsupc++.a -${builddir}/gcc/gcc/xgcc -shared -olibsupc++-${LIBSTDCPP_DLLVER}.dll \ - -Wl,--out-implib,libsupc++-${LIBSTDCPP_DLLVER}.dll.a \ - ./libsupc++.def \ - ./libsupc++.a -rm -f libsupc++.dll.a -ln -s libsupc++-${LIBSTDCPP_DLLVER}.dll.a libsupc++.dll.a - -${TARGET}-dlltool --output-def libstdc++.def --export-all libstdc++.a -${builddir}/gcc/gcc/xgcc -shared -olibstdc++-${LIBSTDCPP_DLLVER}.dll \ - -Wl,--out-implib,libstdc++-${LIBSTDCPP_DLLVER}.dll.a \ - ./libstdc++.def \ - ./libstdc++.a - -rm -f libstdc++.dll.a -ln -s libstdc++-${LIBSTDCPP_DLLVER}.dll.a libstdc++.dll.a - -mkdir -p ${builddir}/device -pushd ${builddir}/device -rm -f libsupc++-${LIBSTDCPP_DLLVER}.dll -rm -f libstdc++-${LIBSTDCPP_DLLVER}.dll -rm -f libgcc.dll - -cp -f ${PREFIX}/lib/gcc/${TARGET}/${GCC_VERSION}/libgcc.dll . -cp -f ${PREFIX}/${TARGET}/lib/libsupc++-${LIBSTDCPP_DLLVER}.dll . -cp -f ${PREFIX}/${TARGET}/lib/libstdc++-${LIBSTDCPP_DLLVER}.dll . - -${TARGET}-strip libgcc.dll -${TARGET}-strip libsupc++-${LIBSTDCPP_DLLVER}.dll -${TARGET}-strip libstdc++-${LIBSTDCPP_DLLVER}.dll -popd - -## MUNGE the .la files -mv libstdc++.la libstdc++.la.SAVE -cat libstdc++.la.SAVE |\ - sed -e "s/^dlname=.*\$/dlname='libstdc++-${LIBSTDCPP_DLLVER}.dll'/" \ - -e "s/^library_names=.*\$/library_names='libstdc++.dll.a'/" >\ - libstdc++.la -rm -f libstdc++.la.SAVE - -mv libsupc++.la libsupc++.la.SAVE -cat libsupc++.la.SAVE |\ - sed -e "s/^dlname=.*\$/dlname='libsupc++-${LIBSTDCPP_DLLVER}.dll'/" \ - -e "s/^library_names=.*\$/library_names='libsupc++.dll.a'/" >\ - libsupc++.la -rm -f libsupc++.la.SAVE - -popd Copied: trunk/cegcc/src/scripts/build-mingw32ce-dlls.sh (from rev 1155, trunk/cegcc/src/build-mingw32ce-dlls.sh) =================================================================== --- trunk/cegcc/src/scripts/build-mingw32ce-dlls.sh (rev 0) +++ trunk/cegcc/src/scripts/build-mingw32ce-dlls.sh 2009-02-07 23:05:37 UTC (rev 1221) @@ -0,0 +1,90 @@ +#!/bin/bash -x + +# Based on script from: +# http://cygwin.com/ml/cygwin-apps/2006-05/msg00044.html + +TARGET=arm-mingw32ce +PREFIX=/opt/mingw32ce +GCC_VERSION=4.1.0 + +export PATH=${PREFIX}/bin:${PATH} + +srcdir=`cd gcc; pwd` +builddir=`cd build-mingw32ce; pwd` + +pushd ${PREFIX}/${TARGET}/lib + +LIBVER=$(grep libtool_VERSION= ${srcdir}/libstdc++-v3/configure | sed -e 's/libtool_VERSION=//') +LIBVER_c=$(echo $LIBVER | awk -F: '{print $1}') +LIBVER_r=$(echo $LIBVER | awk -F: '{print $2}') +LIBVER_a=$(echo $LIBVER | awk -F: '{print $3}') +LIBSTDCPP_DLLVER=$(($LIBVER_c - $LIBVER_a)) + +## no need for a DLLVER for libgcc; it's guaranteed to only add functions, +## never remove or change thier signature. So it'll always be backwards-compatible. + +## It's probably not necessary, but we'll use the LIBSTDCPP_DLLVER for +## libsupc++ as well (after all, all of libsupc++ appears IN libstdc++ +## so if libsupc++ changes in a backwards-non-compatible way, then libstdc++ +## will, too -- and the gcc folks will modify its LIBVER. The downside here +## is that if libsupc++ is unchanged or remains backwards compatible, but +## some other part of libstdc++ changes badly -- we will unnecessarily bump +## libsupc++'s DLLNUM. 'sokay. + +pushd ${PREFIX}/lib/gcc/${TARGET}/${GCC_VERSION} +${TARGET}-dlltool --output-def libgcc.def --export-all libgcc.a +${builddir}/gcc/gcc/xgcc -shared -olibgcc.dll \ + -Wl,--out-implib,libgcc.dll.a \ + ./libgcc.def \ + ./libgcc.a +#no versioned implib, no need to ln +popd + +${TARGET}-dlltool --output-def libsupc++.def --export-all libsupc++.a +${builddir}/gcc/gcc/xgcc -shared -olibsupc++-${LIBSTDCPP_DLLVER}.dll \ + -Wl,--out-implib,libsupc++-${LIBSTDCPP_DLLVER}.dll.a \ + ./libsupc++.def \ + ./libsupc++.a +rm -f libsupc++.dll.a +ln -s libsupc++-${LIBSTDCPP_DLLVER}.dll.a libsupc++.dll.a + +${TARGET}-dlltool --output-def libstdc++.def --export-all libstdc++.a +${builddir}/gcc/gcc/xgcc -shared -olibstdc++-${LIBSTDCPP_DLLVER}.dll \ + -Wl,--out-implib,libstdc++-${LIBSTDCPP_DLLVER}.dll.a \ + ./libstdc++.def \ + ./libstdc++.a + +rm -f libstdc++.dll.a +ln -s libstdc++-${LIBSTDCPP_DLLVER}.dll.a libstdc++.dll.a + +mkdir -p ${builddir}/device +pushd ${builddir}/device +rm -f libsupc++-${LIBSTDCPP_DLLVER}.dll +rm -f libstdc++-${LIBSTDCPP_DLLVER}.dll +rm -f libgcc.dll + +cp -f ${PREFIX}/lib/gcc/${TARGET}/${GCC_VERSION}/libgcc.dll . +cp -f ${PREFIX}/${TARGET}/lib/libsupc++-${LIBSTDCPP_DLLVER}.dll . +cp -f ${PREFIX}/${TARGET}/lib/libstdc++-${LIBSTDCPP_DLLVER}.dll . + +${TARGET}-strip libgcc.dll +${TARGET}-strip libsupc++-${LIBSTDCPP_DLLVER}.dll +${TARGET}-strip libstdc++-${LIBSTDCPP_DLLVER}.dll +popd + +## MUNGE the .la files +mv libstdc++.la libstdc++.la.SAVE +cat libstdc++.la.SAVE |\ + sed -e "s/^dlname=.*\$/dlname='libstdc++-${LIBSTDCPP_DLLVER}.dll'/" \ + -e "s/^library_names=.*\$/library_names='libstdc++.dll.a'/" >\ + libstdc++.la +rm -f libstdc++.la.SAVE + +mv libsupc++.la libsupc++.la.SAVE +cat libsupc++.la.SAVE |\ + sed -e "s/^dlname=.*\$/dlname='libsupc++-${LIBSTDCPP_DLLVER}.dll'/" \ + -e "s/^library_names=.*\$/library_names='libsupc++.dll.a'/" >\ + libsupc++.la +rm -f libsupc++.la.SAVE + +popd This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-06 06:08:56
|
Revision: 1263 http://cegcc.svn.sourceforge.net/cegcc/?rev=1263&view=rev Author: dannybackx Date: 2009-05-06 06:08:44 +0000 (Wed, 06 May 2009) Log Message: ----------- Install the lib*.dll.a also, see mailing list. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/mingwdll/libgcc/Makefile trunk/cegcc/src/mingwdll/libstdc++/Makefile trunk/cegcc/src/mingwdll/libsupc++/Makefile Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-05-02 15:21:33 UTC (rev 1262) +++ trunk/cegcc/src/ChangeLog 2009-05-06 06:08:44 UTC (rev 1263) @@ -1,3 +1,7 @@ +2009-05-06 Danny Backx <dan...@us...> + + * mingwdll/lib{gcc,stdc++,supc++}/Makefile : install the lib*.dll.a . + 2009-02-07 Pedro Alves <ped...@us...> * scripts: New top-level directory. Move build-mingw32ce.sh, Modified: trunk/cegcc/src/mingwdll/libgcc/Makefile =================================================================== --- trunk/cegcc/src/mingwdll/libgcc/Makefile 2009-05-02 15:21:33 UTC (rev 1262) +++ trunk/cegcc/src/mingwdll/libgcc/Makefile 2009-05-06 06:08:44 UTC (rev 1263) @@ -37,3 +37,4 @@ mkdir -p ${DLL_DIR} cp ${BUILD_DIR}/${MYDIR}/${ME}.def ${DLL_DIR} cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll ${DLL_DIR} + cp ${BUILD_DIR}/${MYDIR}/${ME}.dll.a ${DLL_DIR}/${ME}.dll.a Modified: trunk/cegcc/src/mingwdll/libstdc++/Makefile =================================================================== --- trunk/cegcc/src/mingwdll/libstdc++/Makefile 2009-05-02 15:21:33 UTC (rev 1262) +++ trunk/cegcc/src/mingwdll/libstdc++/Makefile 2009-05-06 06:08:44 UTC (rev 1263) @@ -45,5 +45,10 @@ cp ${BUILD_DIR}/${MYDIR}/${ME}.def ${DLL_DIR} cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll ${DLL_DIR} cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll.stripped ${DEVICE_DIR} + # + # Because of name conflict, remove the earlier *.la file + # that comes from the static library build in gcc/ + # rm -f ${DLL_DIR}/${ME}.la cp ${BUILD_DIR}/${MYDIR}/${ME}.la ${DLL_DIR}/${ME}.la + cp ${BUILD_DIR}/${MYDIR}/${ME}.dll.a ${DLL_DIR}/${ME}.dll.a Modified: trunk/cegcc/src/mingwdll/libsupc++/Makefile =================================================================== --- trunk/cegcc/src/mingwdll/libsupc++/Makefile 2009-05-02 15:21:33 UTC (rev 1262) +++ trunk/cegcc/src/mingwdll/libsupc++/Makefile 2009-05-06 06:08:44 UTC (rev 1263) @@ -44,5 +44,10 @@ mkdir -p ${DLL_DIR} ${DEVICE_DIR} cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll ${DEVICE_DIR} cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll.stripped ${DEVICE_DIR} + # + # Because of name conflict, remove the earlier *.la file + # that comes from the static library build in gcc/ + # rm -f ${DLL_DIR}/${ME}.la cp ${BUILD_DIR}/${MYDIR}/${ME}.la ${DLL_DIR}/${ME}.la + cp ${BUILD_DIR}/${MYDIR}/${ME}.dll.a ${DLL_DIR}/${ME}.dll.a This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-18 13:28:16
|
Revision: 1279 http://cegcc.svn.sourceforge.net/cegcc/?rev=1279&view=rev Author: dannybackx Date: 2009-05-18 13:28:08 +0000 (Mon, 18 May 2009) Log Message: ----------- Change definitions of ExitProcess and fileno/_fileno as indicated by Johnny. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/stdio.h trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winbase.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-05-18 10:57:49 UTC (rev 1278) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2009-05-18 13:28:08 UTC (rev 1279) @@ -1,3 +1,7 @@ +2009-05-18 Danny Backx <dan...@us...> + + * include/stdio.h (fileno, _fileno) : Define as void* instead of int. + 2009-05-14 Danny Backx <dan...@us...> * mingwex/stdio/pformat.c : Work around %f issue by selecting the Modified: trunk/cegcc/src/mingw/include/stdio.h =================================================================== --- trunk/cegcc/src/mingw/include/stdio.h 2009-05-18 10:57:49 UTC (rev 1278) +++ trunk/cegcc/src/mingw/include/stdio.h 2009-05-18 13:28:08 UTC (rev 1279) @@ -561,13 +561,11 @@ _CRTIMP FILE* __cdecl __MINGW_NOTHROW _fsopen (const char*, const char*, int); #endif #ifdef __COREDLL__ -/* We know the Microsoft defines _fileno as returning - a void* (HANDLE), but that is so anoying, that we - define it as returning int, which is ok on arm (32-bit). -_CRTIMP void* __cdecl _fileno (FILE*); */ -_CRTIMP int __cdecl __MINGW_NOTHROW _fileno (FILE*); +/* Define _fileno as a void * which appears to be the sensible thing to do, + * even though MSDN claims otherwise. */ +_CRTIMP void * __cdecl __MINGW_NOTHROW _fileno (FILE*); #else -_CRTIMP int __cdecl __MINGW_NOTHROW _fileno (FILE*); +_CRTIMP void * __cdecl __MINGW_NOTHROW _fileno (FILE*); #endif _CRTIMP int __cdecl __MINGW_NOTHROW _fcloseall (void); #ifdef __MSVCRT__ @@ -590,13 +588,11 @@ #ifndef __COREDLL__ _CRTIMP int __cdecl __MINGW_NOTHROW fgetchar (void); _CRTIMP int __cdecl __MINGW_NOTHROW fputchar (int); -_CRTIMP int __cdecl __MINGW_NOTHROW fileno (FILE*); +_CRTIMP void * __cdecl __MINGW_NOTHROW fileno (FILE*); #else -/* We know the Microsoft defines _fileno as returning - a void* (HANDLE), but that is so anoying, that we - define it as returning int, which is ok on arm (32-bit). -_CRTIMP void* __cdecl __MINGW_NOTHROW fileno (FILE*); */ -_CRTIMP int __cdecl __MINGW_NOTHROW fileno (FILE*); +/* Define fileno as a void * which appears to be the sensible thing to do, + * even though MSDN claims otherwise. */ +_CRTIMP void * __cdecl __MINGW_NOTHROW fileno (FILE*); #endif #endif /* Not _NO_OLDNAMES */ Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-18 10:57:49 UTC (rev 1278) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2009-05-18 13:28:08 UTC (rev 1279) @@ -1,6 +1,8 @@ 2009-05-18 Danny Backx <dan...@us...> * include/winbase.h (CRITICAL_SECTION) : Define differently for CE. + * include/winbase.h (ExitProcess) : Define as an inline function, not + a macro. 2009-05-15 Pierre Ynard <lin...@ya...> Modified: trunk/cegcc/src/w32api/include/winbase.h =================================================================== --- trunk/cegcc/src/w32api/include/winbase.h 2009-05-18 10:57:49 UTC (rev 1278) +++ trunk/cegcc/src/w32api/include/winbase.h 2009-05-18 13:28:08 UTC (rev 1279) @@ -1415,8 +1415,16 @@ WINBASEAPI BOOL WINAPI EqualSid(PSID,PSID); WINBASEAPI DWORD WINAPI EraseTape(HANDLE,DWORD,BOOL); WINBASEAPI BOOL WINAPI EscapeCommFunction(HANDLE,DWORD); + +WINBASEAPI BOOL WINAPI TerminateProcess(HANDLE,UINT); +#include <kfuncs.h> #ifdef _WIN32_WCE -#define ExitProcess(CODE) do { TerminateProcess(GetCurrentProcess(), CODE); while (1); } while (0) +static inline void ExitProcess(int code) +{ + TerminateProcess(GetCurrentProcess(), code); + while (1); +} +// #define ExitProcess(CODE) do { TerminateProcess(GetCurrentProcess(), CODE); while (1); } while (0) #else DECLSPEC_NORETURN WINBASEAPI void WINAPI ExitProcess(UINT); #endif @@ -2134,7 +2142,6 @@ WINBASEAPI BOOL WINAPI SwitchToThread(void); WINBASEAPI BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME); WINBASEAPI BOOL WINAPI SystemTimeToTzSpecificLocalTime(LPTIME_ZONE_INFORMATION,LPSYSTEMTIME,LPSYSTEMTIME); -WINBASEAPI BOOL WINAPI TerminateProcess(HANDLE,UINT); WINBASEAPI BOOL WINAPI TerminateThread(HANDLE,DWORD); #ifndef _WIN32_WCE /* In kfuncs.h */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-19 14:14:35
|
Revision: 1301 http://cegcc.svn.sourceforge.net/cegcc/?rev=1301&view=rev Author: dannybackx Date: 2009-05-19 13:49:39 +0000 (Tue, 19 May 2009) Log Message: ----------- Remove libgcc from the build. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/mingwdll/Makefile trunk/cegcc/src/mingwdll/get-version Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-05-19 13:46:20 UTC (rev 1300) +++ trunk/cegcc/src/ChangeLog 2009-05-19 13:49:39 UTC (rev 1301) @@ -1,3 +1,10 @@ +2009-05-19 Danny Backx <dan...@us...> + + * gcc-4.4.0 : New import. + * VERSIONS : Updated to reflect gcc-4.4.0 . + * mingwdll : remove libgcc from the build, gcc 4.4 has native support + for a libgcc DLL. + 2009-05-06 Danny Backx <dan...@us...> * mingwdll/lib{gcc,stdc++,supc++}/Makefile : install the lib*.dll.a . Modified: trunk/cegcc/src/mingwdll/Makefile =================================================================== --- trunk/cegcc/src/mingwdll/Makefile 2009-05-19 13:46:20 UTC (rev 1300) +++ trunk/cegcc/src/mingwdll/Makefile 2009-05-19 13:49:39 UTC (rev 1301) @@ -1,4 +1,4 @@ -SUBDIRS= libgcc libstdc++ libsupc++ +SUBDIRS= libstdc++ libsupc++ all:: Modified: trunk/cegcc/src/mingwdll/get-version =================================================================== --- trunk/cegcc/src/mingwdll/get-version 2009-05-19 13:46:20 UTC (rev 1300) +++ trunk/cegcc/src/mingwdll/get-version 2009-05-19 13:49:39 UTC (rev 1301) @@ -1,5 +1,7 @@ #!/bin/sh -#BASE_DIRECTORY=/home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src +if [ "x$BASE_DIRECTORY" = "x" ]; then + BASE_DIRECTORY=/home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src +fi LIBVER=$(grep libtool_VERSION= ${BASE_DIRECTORY}/gcc/libstdc++-v3/configure | sed -e 's/libtool_VERSION=//') LIBVER_c=$(echo $LIBVER | awk -F: '{print $1}') LIBVER_r=$(echo $LIBVER | awk -F: '{print $2}') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-21 15:05:00
|
Revision: 1315 http://cegcc.svn.sourceforge.net/cegcc/?rev=1315&view=rev Author: dannybackx Date: 2009-05-21 15:04:52 +0000 (Thu, 21 May 2009) Log Message: ----------- This gets arm-mingw32ce and i386-mingw32ce to compile completely. Modified Paths: -------------- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/t-wince trunk/cegcc/src/gcc-4.4.0/gcc/config.gcc trunk/cegcc/src/gcc-4.4.0/libgcc/config.host trunk/cegcc/src/scripts/build-mingw32ce.sh trunk/cegcc/src/scripts/build-x86.sh Modified: trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-05-21 05:43:59 UTC (rev 1314) +++ trunk/cegcc/src/gcc-4.4.0/ChangeLog.ce 2009-05-21 15:04:52 UTC (rev 1315) @@ -1,3 +1,11 @@ +2009-05-21 Danny Backx <dan...@us...> + + * libgcc/config.host, gcc/config.gcc : Define i?86*-mingw32ce as a + separate target, with extra files crtbegin.o and crtend.o . Apparently + both places must have an identical list here. + * gcc/config/i386/t-wince : Add include files from the source tree to + get libgcc2 and crtbegin.c and crtend.c to compile. + 2009-05-19 Danny Backx <dan...@us...> * gcc/config/arm/cygming.opt, mingw32.h, pe-cxx.h, pe-stubs.c : Copy from older mingw32ce gcc port. Mostly Pedro's work. Modified: trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/t-wince =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/t-wince 2009-05-21 05:43:59 UTC (rev 1314) +++ trunk/cegcc/src/gcc-4.4.0/gcc/config/i386/t-wince 2009-05-21 15:04:52 UTC (rev 1315) @@ -1 +1,19 @@ SHLIB_LC = -lmingw32 -lmingwex -lceoldname -lcoredll + +LIBGCC2_INCLUDES += \ + -I$(srcdir)/../../mingw/include \ + -I$(srcdir)/../../w32api/include + +CRTSTUFF_CFLAGS += \ + -I$(srcdir)/../../mingw/include \ + -I$(srcdir)/../../w32api/include + +# LIBGCC2_INCLUDES += -I$(srcdir)/../winsup/include \ +# -I$(srcdir)/../winsup/cygwin/include \ +# -I$(srcdir)/yow -I$(srcdir)/../../mingw/include \ +# -I$(srcdir)/../../w32api/include +# +# CRTSTUFF_CFLAGS += -I$(srcdir)/../winsup/include \ +# -I$(srcdir)/../winsup/cygwin/include \ +# -I$(srcdir)/yow -I$(srcdir)/../../mingw/include \ +# -I$(srcdir)/../../w32api/include Modified: trunk/cegcc/src/gcc-4.4.0/gcc/config.gcc =================================================================== --- trunk/cegcc/src/gcc-4.4.0/gcc/config.gcc 2009-05-21 05:43:59 UTC (rev 1314) +++ trunk/cegcc/src/gcc-4.4.0/gcc/config.gcc 2009-05-21 15:04:52 UTC (rev 1315) @@ -1336,6 +1336,7 @@ *-mingw32ce*) tm_file="${tm_file} i386/mingw32ce.h" tmake_file="${tmake_file} i386/t-wince" + extra_parts="crtbegin.o crtend.o crtfastmath.o" ;; *mingw32crt*) tm_file="${tm_file} i386/crtdll.h" Modified: trunk/cegcc/src/gcc-4.4.0/libgcc/config.host =================================================================== --- trunk/cegcc/src/gcc-4.4.0/libgcc/config.host 2009-05-21 05:43:59 UTC (rev 1314) +++ trunk/cegcc/src/gcc-4.4.0/libgcc/config.host 2009-05-21 15:04:52 UTC (rev 1315) @@ -337,6 +337,10 @@ ;; i[34567]86-*-pe) ;; +i[34567]86-*-mingw32ce*) + extra_parts="crtbegin.o crtend.o crtfastmath.o" + tmake_file="i386/t-cygming i386/t-crtfm" + ;; i[34567]86-*-cygwin* | i[34567]86-*-mingw*) extra_parts="crtbegin.o crtend.o crtfastmath.o" tmake_file="i386/t-cygming i386/t-crtfm" Modified: trunk/cegcc/src/scripts/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-05-21 05:43:59 UTC (rev 1314) +++ trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-05-21 15:04:52 UTC (rev 1315) @@ -14,7 +14,7 @@ ac_default_prefix="/opt/mingw32ce" -gcc_src=gcc +export gcc_src=gcc-4.4.0 # The list of components, in build order. There's a build_FOO # function for each of these components @@ -218,10 +218,14 @@ --disable-shared \ --disable-interwork \ --without-newlib \ - --enable-checking + --enable-checking || exit 1 - make ${PARALLELISM} all-gcc - make install-gcc + make ${PARALLELISM} all-gcc || exit 1 + make configure-target-libgcc || exit 1 + make install-gcc || exit 1 + cd ${TARGET}/libgcc || exit 1 + make ${PARALLELLISM} libgcc.a || exit 1 + /usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 cd ${BUILD_DIR} } @@ -305,16 +309,21 @@ --disable-interwork \ --without-newlib \ --enable-checking \ - --with-headers + --with-headers \ + --disable-__cxa_atexit # we build libstdc++ as dll, so we don't need this. # --enable-fully-dynamic-string \ - +# --enable-sjlj-exceptions \ # --disable-clocale \ make ${PARALLELISM} make install + # + # Clean up one file + # + cd ${BUILD_DIR} } @@ -481,7 +490,7 @@ export TARGET="arm-mingw32ce" #export TARGET="arm-wince-mingw32ce" -export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` +export BUILD=`sh ${BASE_DIRECTORY}/${gcc_src}/config.guess` if [ "x${host}" != "x" ]; then export HOST="${host}" else Modified: trunk/cegcc/src/scripts/build-x86.sh =================================================================== --- trunk/cegcc/src/scripts/build-x86.sh 2009-05-21 05:43:59 UTC (rev 1314) +++ trunk/cegcc/src/scripts/build-x86.sh 2009-05-21 15:04:52 UTC (rev 1315) @@ -14,7 +14,7 @@ ac_default_prefix="/opt/x86mingw32ce" -gcc_src=gcc +export gcc_src=gcc-4.4.0 # The list of components, in build order. There's a build_FOO # function for each of these components @@ -220,10 +220,18 @@ --without-newlib \ --enable-checking - make ${PARALLELISM} all-gcc - make install-gcc + make ${PARALLELISM} all-gcc || exit 1 + make install-gcc || exit 1 + make configure-target-libgcc || exit 1 + cd ${TARGET}/libgcc || exit 1 + make ${PARALLELLISM} libgcc.a crtbegin.o crtend.o crtfastmath.o || exit 1 + /usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 + /usr/bin/install -c -m 644 crtbegin.o ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 + /usr/bin/install -c -m 644 crtend.o ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 + /usr/bin/install -c -m 644 crtfastmath.o ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1 cd ${BUILD_DIR} +# HOST_LIBGCC2_CFLAGS="-I${BASE_DIRECTORY}/mingw/include -I${BASE_DIRECTORY}/w32api/include" } build_w32api() @@ -397,8 +405,16 @@ { echo "" echo "BUILDING profiling libraries --------------------------" + echo " temporarily disabled" echo "" +} + +notyet_build_profile() +{ echo "" + echo "BUILDING profiling libraries --------------------------" + echo "" + echo "" mkdir -p profile cd profile @@ -481,7 +497,7 @@ export TARGET="i386-mingw32ce" -export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` +export BUILD=`sh ${BASE_DIRECTORY}/${gcc_src}/config.guess` export PATH=${PREFIX}/bin:${PATH} if [ "x${host}" != "x" ]; then This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-26 18:38:57
|
Revision: 1320 http://cegcc.svn.sourceforge.net/cegcc/?rev=1320&view=rev Author: dannybackx Date: 2009-05-26 18:37:43 +0000 (Tue, 26 May 2009) Log Message: ----------- Change syntax of tail command. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/scripts/build-mingw32ce.sh trunk/cegcc/src/scripts/build-x86.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-05-22 12:46:28 UTC (rev 1319) +++ trunk/cegcc/src/ChangeLog 2009-05-26 18:37:43 UTC (rev 1320) @@ -1,3 +1,7 @@ +2009-05-26 Vincent Richomme <fo...@sm...> + + * scripts/build-*.sh : Change syntax of tail command. + 2009-05-19 Danny Backx <dan...@us...> * gcc-4.4.0 : New import. Modified: trunk/cegcc/src/scripts/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-05-22 12:46:28 UTC (rev 1319) +++ trunk/cegcc/src/scripts/build-mingw32ce.sh 2009-05-26 18:37:43 UTC (rev 1320) @@ -267,7 +267,7 @@ echo "#define __CEGCC_VERSION_MINOR__ " $CEGCC_VERSION_MINOR >> ${DESTFILE} echo "#define __CEGCC_VERSION_PATCHLEVEL__ " $CEGCC_VERSION_PATCHLEVEL >> ${DESTFILE} echo "#define __CEGCC_BUILD_DATE__" `date +%Y%m%d` >> ${DESTFILE} - tail +$L2 ${INCFILE} >>${DESTFILE} + tail --lines=+$L2 ${INCFILE} >>${DESTFILE} cd ${BUILD_DIR} } Modified: trunk/cegcc/src/scripts/build-x86.sh =================================================================== --- trunk/cegcc/src/scripts/build-x86.sh 2009-05-22 12:46:28 UTC (rev 1319) +++ trunk/cegcc/src/scripts/build-x86.sh 2009-05-26 18:37:43 UTC (rev 1320) @@ -271,7 +271,7 @@ echo "#define __CEGCC_VERSION_MINOR__ " $CEGCC_VERSION_MINOR >> ${DESTFILE} echo "#define __CEGCC_VERSION_PATCHLEVEL__ " $CEGCC_VERSION_PATCHLEVEL >> ${DESTFILE} echo "#define __CEGCC_BUILD_DATE__" `date +%Y%m%d` >> ${DESTFILE} - tail +$L2 ${INCFILE} >>${DESTFILE} + tail --lines=+$L2 ${INCFILE} >>${DESTFILE} cd ${BUILD_DIR} } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-31 18:29:14
|
Revision: 1329 http://cegcc.svn.sourceforge.net/cegcc/?rev=1329&view=rev Author: dannybackx Date: 2009-05-31 18:29:06 +0000 (Sun, 31 May 2009) Log Message: ----------- Forgotten commit Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/mingwdll/get-version trunk/cegcc/src/mingwdll/libstdc++/Makefile Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-05-31 14:53:08 UTC (rev 1328) +++ trunk/cegcc/src/ChangeLog 2009-05-31 18:29:06 UTC (rev 1329) @@ -1,3 +1,9 @@ +2009-05-31 Danny Backx <dan...@us...> + + * mingwdll/get-version : Deal with other directory than src/gcc . + * mingwdll/libstdc++/Makefile : Fix typo in variable name, use the + right compiler, use the right set of libraries. + 2009-05-26 Vincent Richomme <fo...@sm...> * scripts/build-*.sh : Change syntax of tail command. Modified: trunk/cegcc/src/mingwdll/get-version =================================================================== --- trunk/cegcc/src/mingwdll/get-version 2009-05-31 14:53:08 UTC (rev 1328) +++ trunk/cegcc/src/mingwdll/get-version 2009-05-31 18:29:06 UTC (rev 1329) @@ -2,7 +2,10 @@ if [ "x$BASE_DIRECTORY" = "x" ]; then BASE_DIRECTORY=/home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src fi -LIBVER=$(grep libtool_VERSION= ${BASE_DIRECTORY}/gcc/libstdc++-v3/configure | sed -e 's/libtool_VERSION=//') +if [ "x$gcc_src" = "x" ]; then + gcc_src=gcc-4.4.0 +fi +LIBVER=$(grep libtool_VERSION= ${BASE_DIRECTORY}/${gcc_src}/libstdc++-v3/configure | sed -e 's/libtool_VERSION=//') LIBVER_c=$(echo $LIBVER | awk -F: '{print $1}') LIBVER_r=$(echo $LIBVER | awk -F: '{print $2}') LIBVER_a=$(echo $LIBVER | awk -F: '{print $3}') Modified: trunk/cegcc/src/mingwdll/libstdc++/Makefile =================================================================== --- trunk/cegcc/src/mingwdll/libstdc++/Makefile 2009-05-31 14:53:08 UTC (rev 1328) +++ trunk/cegcc/src/mingwdll/libstdc++/Makefile 2009-05-31 18:29:06 UTC (rev 1329) @@ -15,7 +15,7 @@ DLLVERSION= `${BASE_DIRECTORY}/mingwdll/get-version` -DLL_LIBS= # -lws2 +DLL_LIBS= -lgcc -lgcc_s # -lws2 GCC_VERSION= `${TARGET}-gcc --version | head -1 | awk '{print $$3;}'` @@ -23,10 +23,10 @@ mkdir -p ${BUILD_DIR}/${MYDIR} ${TARGET}-dlltool --output-def ${BUILD_DIR}/${MYDIR}/${ME}.def \ --export-all ${PREFIX}/${TARGET}/lib/${ME}.a - cd ${BUILD_DIR}/${MYDIR}; ${TARGET}-gcc --shared \ + cd ${BUILD_DIR}/${MYDIR}; ${TARGET}-g++ --shared \ -o ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll \ -Wl,--out-implib,${ME}.dll.a ${BUILD_DIR}/${MYDIR}/${ME}.def \ - ${PREFIX}/${TARGET}/lib/${ME}.a ${DLL-LIBS} + ${PREFIX}/${TARGET}/lib/${ME}.a ${DLL_LIBS} -rm -f ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll.stripped cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll.stripped ${TARGET}-strip ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll.stripped This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-05-31 18:31:39
|
Revision: 1330 http://cegcc.svn.sourceforge.net/cegcc/?rev=1330&view=rev Author: dannybackx Date: 2009-05-31 18:31:34 +0000 (Sun, 31 May 2009) Log Message: ----------- Another one Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/mingwdll/Makefile Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-05-31 18:29:06 UTC (rev 1329) +++ trunk/cegcc/src/ChangeLog 2009-05-31 18:31:34 UTC (rev 1330) @@ -3,6 +3,7 @@ * mingwdll/get-version : Deal with other directory than src/gcc . * mingwdll/libstdc++/Makefile : Fix typo in variable name, use the right compiler, use the right set of libraries. + * mingwdll/Makefile : Don't build anything in libsupc++ 2009-05-26 Vincent Richomme <fo...@sm...> Modified: trunk/cegcc/src/mingwdll/Makefile =================================================================== --- trunk/cegcc/src/mingwdll/Makefile 2009-05-31 18:29:06 UTC (rev 1329) +++ trunk/cegcc/src/mingwdll/Makefile 2009-05-31 18:31:34 UTC (rev 1330) @@ -1,4 +1,5 @@ -SUBDIRS= libstdc++ libsupc++ +#SUBDIRS= libstdc++ libsupc++ +SUBDIRS= libstdc++ all:: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2009-06-03 20:26:13
|
Revision: 1334 http://cegcc.svn.sourceforge.net/cegcc/?rev=1334&view=rev Author: dannybackx Date: 2009-06-03 20:26:12 +0000 (Wed, 03 Jun 2009) Log Message: ----------- Remove -lgcc_s Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/mingwdll/libstdc++/Makefile Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2009-06-03 19:56:09 UTC (rev 1333) +++ trunk/cegcc/src/ChangeLog 2009-06-03 20:26:12 UTC (rev 1334) @@ -1,3 +1,8 @@ +2009-06-03 Danny Backx <dan...@us...> + + * mingwdll/libstdc++/Makefile : Remove -lgcc_s flag. No longer + required with the recent gcc-4.4.0 fix inspired by Dave Korn. + 2009-05-31 Danny Backx <dan...@us...> * mingwdll/get-version : Deal with other directory than src/gcc . Modified: trunk/cegcc/src/mingwdll/libstdc++/Makefile =================================================================== --- trunk/cegcc/src/mingwdll/libstdc++/Makefile 2009-06-03 19:56:09 UTC (rev 1333) +++ trunk/cegcc/src/mingwdll/libstdc++/Makefile 2009-06-03 20:26:12 UTC (rev 1334) @@ -15,7 +15,7 @@ DLLVERSION= `${BASE_DIRECTORY}/mingwdll/get-version` -DLL_LIBS= -lgcc -lgcc_s # -lws2 +DLL_LIBS= -lgcc GCC_VERSION= `${TARGET}-gcc --version | head -1 | awk '{print $$3;}'` This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |