[Stackless] Fwd: problem with build under linux ppc
Richard Tew
richard.m.tew at gmail.com
Sun Sep 3 22:38:45 CEST 2006
On 8/26/06, Santiago Gala <santiago.gala at gmail.com> wrote:
> I can survive, I just need to remember to edit the Makefile after
> configuring to remove the -fno-omit-frame-pointer bit
Or, you can try this patch for me, and let me know how it goes.
It is for 2.4.3 in SVN. Strictly speaking, I should do what the
standard method is in there, which would be to use "uname -p"
to get the processor, and to use the already fetched os. But
This seemed easier and if I recall correctly, more portable.
However, I don't really have a linux box or equivalent I can try
this on.
If you can try it and let me know if it suffices, then it would
be appreciated.
Thanks,
Richard.
Index: configure.in
===================================================================
--- configure.in (revision 51686)
+++ configure.in (working copy)
@@ -125,17 +125,6 @@
'') MACHDEP="unknown";;
esac
fi
-
-# Stackless flags for compiling the hard switching code
-case $MACHDEP in
- darwin)
- SLPFLAGS="-fomit-frame-pointer -O2"
- ;;
- *)
- SLPFLAGS="-fno-omit-frame-pointer -O2"
- ;;
-esac
-AC_SUBST(SLPFLAGS)
# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
# disable features if it is defined, without any means to access these
@@ -3158,14 +3147,19 @@
done
AC_MSG_RESULT(done)
-AC_SUBST(SLPFLAGS)
-SLPFLAGS="-fno-omit-frame-pointer -O2"
-case $MACHDEP in
-darwin) SLPFLAGS="-fomit-frame-pointer -O2";;
-'') SLPFLAGS="-fno-omit-frame-pointer -O2";;
+# Stackless flags for compiling the hard switching code
+AC_CANONICAL_HOST
+HOST_PLATFORM="$host_os-$host_cpu"
+case $HOST_PLATFORM in
+ darwin* | *linux*-powerpc*)
+ SLPFLAGS="-fomit-frame-pointer -O2"
+ ;;
+ *)
+ SLPFLAGS="-fno-omit-frame-pointer -O2"
+ ;;
esac
+AC_SUBST(SLPFLAGS)
-
# generate output files
AC_CONFIG_FILES(Makefile.pre Modules/Setup.config)
AC_OUTPUT
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless
More information about the Stackless
mailing list