[EMAIL PROTECTED] wrote:
Author: matthew
Date: 2005-09-02 16:01:00 -0600 (Fri, 02 Sep 2005)
New Revision: 6800
Modified:
branches/gcc4/BOOK/chapter01/changelog.xml
branches/gcc4/BOOK/chapter06/util-linux.xml
Log:
Correct the util-linux segfault fix
-<screen><userinput>sed -i 's/-O2/-O/' MCONFIG</userinput></screen>
+<screen><userinput>sed -i 's/-O2/-O/' configure</userinput></screen>
Just for the sake of thoroughness, here... Please note that the above
sed does *not* remove the use of '-O2' from the compile arguments.
Here's a sample line from one of my logs when applying the change to
only 'configure':
"cc -pipe -O2 -mtune=i486 -fomit-frame-pointer -I../lib -Wall
-Wmissing-prototypes -Wstrict-prototypes -DNCH=1
-D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\"
-DLOGDIR=\"/var/log\" -DVARPATH=\"/var\"
-DLOCALEDIR=\"/usr/share/locale\" -O -s ul.o -o ul -lncurses"
This, as mentioned by Chris, avoids the segfault, but perhaps we should
make sure that -O2 isn't used at all until we know what is causing the
bug? (Is -O overriding -O2 here because it's used second? Someone mind
explaining what happens when two optimisation flags are used at once?)
If we were to go that route, you'd need to add 'MCONFIG' back in next to
configure. Like so:
sed -i 's/-O2/-O/' MCONFIG configure
Doing that completely removes -O2 from the build.
--
JH
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page