Cross-lfs build-host.sh fails

Brian Beattie beattie at beattie-home.net
Fri Jul 30 09:41:31 PDT 2004


On Fri, 2004-07-30 at 00:49, Ryan.Oliver at pha.com.au wrote:
> 
> 
> 
> OK, I was using coreutils-5.0 on my solaris box for the solaris native
> tools...
> 
> Will have a go at updating the script for later versions...

Should I take this to lfs-hackers?

I got the script to run to completion with the following patch:

---------- start of patch --------------

> 
>  Regards
> [R]
-- 
Brian Beattie   LFS12947 | "Honor isn't about making the right choices.
beattie at beattie-home.net | It's about dealing with the consequences."
www.beattie-home.net     | -- Midori Koto

--- cross-lfs/scripts/host-scripts/host-coreutils-binaries.sh	2004-07-14 23:29:28.000000000 -0400
+++ cross-lfs-3.0.0/scripts/host-scripts/host-coreutils-binaries.sh	2004-07-30 10:34:23.000000000 -0400
@@ -1,6 +1,5 @@
 #!/bin/bash
 
-### COREUTILS BINARIES ###
 
 # NOTE: Here we are only creating a small subset of the coreutils binaries.
 
@@ -32,8 +31,8 @@
 } 
 
 max_log_init Coreutils ${COREUTILS_VER} "native echo (shared)" ${CONFLOGS} ${LOG}
-#CFLAGS="-O2 -pipe" DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=${HST_TOOLS}  \
-CFLAGS="-O2 -pipe" ./configure --prefix=${HST_TOOLS}  \
+#CFLAGS="-O2 -pipe" ./configure --prefix=${HST_TOOLS}  \
+CFLAGS="-O2 -pipe" DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=${HST_TOOLS}  \
    >> ${LOGFILE} 2>&1 &&
 echo " o Configure OK" &&
 
@@ -44,6 +43,8 @@
 # glibc build gets upset by systems with a non BSDish echo program which
 # always expands \n regardless if it is contained inside single quotes.
 # (solaris)
+make ${PMFLAGS} LDFLAGS="-s" -C src localedir.h \
+   >> ${LOGFILE} 2>&1 &&
 
 # NOTE: building echo doesn't solve this issue when echo is issued from
 #       make, as make invokes /bin/sh which for some reason doesn't use
------ end of patch ------------




More information about the lfs-dev mailing list