sm-sorcery AT lists.ibiblio.org
Subject: Discussion of Sorcery related topics
List archive
- From: "Chris Brien" <christopher_brien AT hotmail.com>
- To: <tedberg AT etherstorm.net>, <sm-sorcery AT lists.ibiblio.org>
- Subject: Re: [SM-Sorcery]Optimization inconsistency
- Date: Sat, 31 Aug 2002 19:14:19 +0100
From: "Ted Berg" <tedberg AT etherstorm.net>
> On Saturday 31 August 2002 02:23 am, Ted Berg wrote:
> > I have a kludge that would work, but the $OPTS variable doesn't seem to
be
> > getting set with the compiler optimization switches when openssl is
built,
> > as happens with openssh and the kde* spells. What determines when this
> > variable gets set, and what value it gets assigned?
>
> Wrong env variable. Here's the quick and dirty hack, change the BUILD
file to
> this:
> ===
> (
>
> patch -p0 < $SCRIPT_DIRECTORY/config.patch
>
> ./config --prefix=/usr \
> --openssldir=/etc/ssl \
> shared &&
> cat Makefile | sed -e "s/-O3//g" | sed -e "s/-m486/$CFLAGS/g" >
> sourcemage.tmp &&
> cat sourcemage.tmp > Makefile &&
> make &&
> prepare_install
> make MANDIR=/usr/share/man install
>
> ) > $C_FIFO 2>&1
Much easier to use sedit.
sedit "s/-O3//g" Makefile &&
sedit "s/-m486/$CFLAGS/g" Makefile
This sort of thing has to be done every time a spell doesn't use CFLAGS
correctly. The optimisation settings are set in the optimize() function in
/var/lib/sorcery/modules/libgrimoire. The specific settings for your CPU are
defined in /var/lib/sorcery/archspecs.
The reason optimisations aren't used in mozilla is that they cause problems
with the operation of mozilla. The BUILD file says
unset CFLAGS
for this reason.
With gcc, no optimisations are used because what works for one compiler may
not work for another. During the bootstrap process of gcc, three different
compilers are used.
And for xfree86, the optimisation is again hardcoded in the makefile.
> Know where there's any good autoconf documentation?
Try "info autoconf".
Chris
aka zero_the_hero
-
[SM-Sorcery]Optimization inconsistency,
Ted Berg, 08/30/2002
-
Re: [SM-Sorcery]Optimization inconsistency,
Treeve Jelbert, 08/30/2002
-
Re: [SM-Sorcery]Optimization inconsistency,
Ted Berg, 08/30/2002
-
Re: [SM-Sorcery]Optimization inconsistency,
Dufflebunk, 08/30/2002
- Re: [SM-Sorcery]Optimization inconsistency, Thomas Graham, 08/30/2002
-
Re: [SM-Sorcery]Optimization inconsistency,
Ted Berg, 08/31/2002
-
Re: [SM-Sorcery]Optimization inconsistency,
Ted Berg, 08/31/2002
- Re: [SM-Sorcery]Optimization inconsistency, Chris Brien, 08/31/2002
-
Re: [SM-Sorcery]Optimization inconsistency,
Ted Berg, 08/31/2002
-
Re: [SM-Sorcery]Optimization inconsistency,
Dufflebunk, 08/30/2002
-
Re: [SM-Sorcery]Optimization inconsistency,
Ted Berg, 08/30/2002
-
Re: [SM-Sorcery]Optimization inconsistency,
Treeve Jelbert, 08/30/2002
Archive powered by MHonArc 2.6.24.