sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to devel-gcc grimoire by Florian Franzmann (3e53b3605c6c8510c44147499b278a9cf2a15ac5)
- From: Florian Franzmann <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to devel-gcc grimoire by Florian Franzmann (3e53b3605c6c8510c44147499b278a9cf2a15ac5)
- Date: Fri, 2 Apr 2010 15:29:21 -0500
GIT changes to devel-gcc grimoire by Florian Franzmann
<siflfran AT hawo.stw.uni-erlangen.de>:
ChangeLog | 8 ++++++
gnu/FUNCTIONS | 72
++++++++++++++++++++++++++++------------------------------
2 files changed, 43 insertions(+), 37 deletions(-)
New commits:
commit 3e53b3605c6c8510c44147499b278a9cf2a15ac5
Author: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
gnu/FUNCTIONS: - default_build_configure_gcc: specified bug url, pass
CFLAGS, BOOT_CFLAGS, CXXFLAGS to configure
- default_build_make_gcc: use make_single
- default_build_install_gcc: LIBRARY is passed as a parameter now,
installing compiler1 is the spell's responsibility
diff --git a/ChangeLog b/ChangeLog
index e48822b..bbecf35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-04-02 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * gnu/FUNCTIONS:
+ - default_build_configure_gcc: specified bug url, pass
+ CFLAGS, BOOT_CFLAGS, CXXFLAGS to configure
+ - default_build_make_gcc: use make_single
+ - default_build_install_gcc: LIBRARY is passed as a parameter now,
+ installing compiler1 is the spell's responsibility
+
2010-04-02 Arwed v. Merkatz <v.merkatz AT gmx.net>
* gnome2-libs/libgdata: new spell, glib based GData protocol
implementation
diff --git a/gnu/FUNCTIONS b/gnu/FUNCTIONS
index eb720d1..2bd917b 100755
--- a/gnu/FUNCTIONS
+++ b/gnu/FUNCTIONS
@@ -50,18 +50,26 @@ function default_build_configure_gcc ()
# fixes seg-fault on libiberty/splay.c in v 4.3.2
CFLAGS="-O1 $CFLAGS" &&
+ OPTS="--build=$HOST $OPTS" &&
if [[ $CROSS_INSTALL == on ]]; then
OPTS="--host=$HOST $OPTS" || return 1
- else
- OPTS="--build=$HOST $OPTS" || return 1
- fi &&
+ fi &&
- $SOURCE_DIRECTORY/configure \
- --prefix="${INSTALL_ROOT}/usr" \
- --infodir="${INSTALL_ROOT}/usr/share/info" \
- --mandir="${INSTALL_ROOT}/usr/share/man" \
+ PREFIX="${INSTALL_ROOT}/usr" &&
+ LIBPATH="${PREFIX}/lib" &&
+ LIBEXECPATH="${PREFIX}/libexec/${SPELL}" &&
+ INCLUDEPATH="${LIBPATH}/include" &&
+ DATAPATH="${PREFIX}/share/${SPELL}-data/${HOST}" &&
+
+ CFLAGS="$CFLAGS" BOOT_CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
+ $SOURCE_DIRECTORY/configure \
+ --prefix="${PREFIX}" \
+ --libdir="${LIBPATH}" \
+ --mandir="${PREFIX}/share/man" \
+ --infodir="${PREFIX}/share/info" \
--enable-threads=posix \
--with-system-zlib \
+ --with-bugurl="http://bugs.sourcemage.org" \
$GCC_MULTILIB \
$OPTS
}
@@ -69,10 +77,10 @@ function default_build_configure_gcc ()
function default_build_make_gcc ()
{
cd ${SOURCE_DIRECTORY}.bld &&
-#make_single &&
+ make_single &&
make CFLAGS="$CFLAGS" BOOT_CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
- profiledbootstrap-lean
-#make_normal
+ profiledbootstrap-lean &&
+ make_normal
}
function default_build_gcc ()
@@ -81,46 +89,36 @@ function default_build_gcc ()
default_build_make_gcc
}
+#---------------------------------------------------------------------
+##
+## @params library
+## accepted values: libada libgfortran
+## libstdc++-v3 libjava
+## libobjc
+##
+#---------------------------------------------------------------------
function default_install_gcc ()
{
- local COMPILER1 &&
- local LIBRARY &&
- local SPECSNAME &&
- SPECSNAME=$SPELL
-
- if [[ "$SPELL" == "ada" ]]; then
- COMPILER1=gnat1
- LIBRARY=libada
- elif [[ "$SPELL" == "fortran" ]]; then
- COMPILER1=f951
- LIBRARY=libgfortran
- elif [[ "$SPELL" == "g++" ]]; then
- COMPILER1=cc1plus
- LIBRARY=libstdc++-v3
- elif [[ "$SPELL" == "gcj" ]]; then
- COMPILER1={jc1,jvgenmain}
- LIBRARY=libjava
- elif [[ "$SPELL" == "objc" ]]; then
- COMPILER1=cc1obj
- LIBRARY=libobjc
- else
- message "default_install_gcc: unknown spell $SPELL"
+ if [[ "$1" == "" ]]; then
+ message "${PROBLEM_COLOR}default_install_gcc: library
unspecified.${DEFAULT_COLOR}"
return 1
fi &&
+ local LIBRARY &&
+
+ LIBRARY="$1" &&
cd $SOURCE_DIRECTORY.bld &&
make_single &&
- make -C gcc lang.install-common lang.install-man
&&
- install gcc/${COMPILER1} ${INSTALL_ROOT}/usr/libexec/gcc/$HOST/$VERSION
&&
- make -C $HOST/$LIBRARY install &&
+ make -C gcc lang.install-common lang.install-man &&
+ make -C $HOST/$LIBRARY install &&
make_normal &&
# specs file stuff
local SPECSDIR=${INSTALL_ROOT}/usr/lib/gcc/$HOST/$VERSION &&
- if [[ -f $SPELL_DIRECTORY/specs_$SPECSNAME ]]; then
- install $SPELL_DIRECTORY/specs_$SPECSNAME $SPECSDIR/specs-local ||
return 1
+ if [[ -f $SPELL_DIRECTORY/specs_$SPELL ]]; then
+ install $SPELL_DIRECTORY/specs_$SPELL $SPECSDIR/specs-local ||
return 1
fi
}
-
[SM-Commit] GIT changes to devel-gcc grimoire by Florian Franzmann (3e53b3605c6c8510c44147499b278a9cf2a15ac5),
Florian Franzmann, 04/02/2010
-
Re: [SM-Commit] GIT changes to devel-gcc grimoire by Florian Franzmann (3e53b3605c6c8510c44147499b278a9cf2a15ac5),
Eric Sandall, 04/02/2010
- Re: [SM-Commit] GIT changes to devel-gcc grimoire by Florian Franzmann (3e53b3605c6c8510c44147499b278a9cf2a15ac5), Florian Franzmann, 04/02/2010
-
Re: [SM-Commit] GIT changes to devel-gcc grimoire by Florian Franzmann (3e53b3605c6c8510c44147499b278a9cf2a15ac5),
Eric Sandall, 04/02/2010
Archive powered by MHonArc 2.6.24.