New commits:
commit 952f9cd9349812c57a25d30c27f4ea008c18faab
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>
Added entry for alpha arch in linux headers setup (archspecs for
that are pending in bugzilla) and also an "else" that lets the
build fail if the architecture is not yet supported by the spell.
#
# Setup sanitised glibc-kernel-headers for the glibc compile
+# ...as well as other arch-dependend specialties
#
persistent_add GLIBC_ARCH &&
if [[ ${SMGL_COMPAT_ARCHS[1]} == x86_64 ]]; then
@@ -89,7 +90,18 @@ elif [[ ${SMGL_COMPAT_ARCHS[0]} == 32 &&
sedit "s:CPPFLAGS += -DHAVE_INITFINI:CPPFLAGS += -DHAVE_INITFINI -fno-pie
-fno-PIE:" csu/Makefile
export CFLAGS="${CFLAGS/-fcall-used-g7/}"
export CFLAGS="$CFLAGS -fcall-used-g6"
-fi &&
+elif [[ ${SMGL_COMPAT_ARCHS[1]} == alpha ]]; then
+ # This is a first attempt to get alpha going, being paranoid about any
CFLAGS,
+ # not without reason: -Os/-O breaks compile in strange ways:
+ # either an elf/ld.so that segfaults (build failing at sunrpc) or
+ # internal compiler error(s) in intl/
+ # glibc knows itself what flags to choose
+ export CFLAGS="" &&
+ GLIBC_ARCH=alpha
+else
+ message "Glibc spell doesn't know your architecture!" &&
+ false
+fi &&
# set the asm headers to point to the correct architecture
cd $GLIBC_HEADERS_DIR/include &&
diff --git a/libs/glibc/HISTORY b/libs/glibc/HISTORY
index c285dc0..c0139f9 100644
--- a/libs/glibc/HISTORY
+++ b/libs/glibc/HISTORY
@@ -1,3 +1,7 @@
+2006-06-24 Thomas Orgis <sobukus AT sourcemage.org>
+ * BUILD: added alpha headers/CFLAGS setup, made build fail for
+ unknown arch in a controlled way
+
2006-06-20 David Brown <dmlb2000 AT gmail.com>
* DETAILS: turned off staged install for this spell
[SM-Commit] GIT changes to master grimoire by Thomas Orgis (952f9cd9349812c57a25d30c27f4ea008c18faab),
Thomas Orgis, 06/23/2006