This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Comparing Bill and Karim's cross-compile scripts. Updating Bill'sto gcc 3.2.3.


Here's a diff that illustrates the things Karim got that I think
Bill's script missed.
I'm building with it now, will probably have a corrected version later
(and will be sorry I posted this :-)
- Dan

--- build-crossgcc.sh Fri May 16 13:53:45 2003
+++ build-crossgcc-x.sh Fri May 16 16:19:03 2003
@@ -214,6 +214,7 @@
mkdir -p ${PREFIX}/${TARGET}/include
cp -r include/linux ${PREFIX}/${TARGET}/include/linux
cp -r include/asm-${ARCH} ${PREFIX}/${TARGET}/include/asm
+ cp -r include/asm-generic ${PREFIX}/${TARGET}/include/asm-generic
cd ..


;;
@@ -239,6 +240,7 @@
mkdir -p ${PREFIX}/${TARGET}/include
cp -r include/linux ${PREFIX}/${TARGET}/include
cp -r include/asm-${ARCH} ${PREFIX}/${TARGET}/include/asm
+ cp -r include/asm-generic ${PREFIX}/${TARGET}/include/asm-generic
cd ..


 	;;
@@ -284,7 +286,7 @@

     # for these targets, gcc's libgcc2 assumes the presence of some
     # header files that we won't have until after glibc or newlib are
-    # built.  When we throw in --without-headers --without-newlib, the
+    # built.  When we throw in --without-headers --with-newlib, the
     # configure process throws in a:
     #
     # TARGET_LIBGCC2_CFLAGS=-Dinhibit_libc
@@ -365,10 +367,16 @@
     mkdir build-glibc; cd build-glibc

CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib \
- ../${GLIBCDISTO}/configure --host=$TARGET --prefix=${PREFIX}/${TARGET} \
+ ../${GLIBCDISTO}/configure --host=$TARGET --prefix=/usr \
--enable-add-ons=linuxthreads --with-headers=${PREFIX}/${TARGET}/include \
2>&1 | tee configure.log ;;


+    make all install info install-info install_root=${PREFIX} 2>&1 | tee make.log
+
+    # Remove absolute paths from ld.so; makes cross ld work, doesn't hurt native ld.so
+    # FIXME: ought to use sed instead of just assuming we know what's in ld.so
+    mv ${PREFIX}/lib/ld.so ${PREFIX}/lib/ld.so.org
+    echo "GROUP ( libc.so.6 libc_nonshared.a )" > ${PREFIX}/lib/ld.so

     # these targets use newlib
     arm-elf | h8300-coff | h8300-hitachi-hms | m68k-coff | m68k-elf | powerpc-eabi | sh-elf | sh-hms)
@@ -381,10 +389,10 @@
     ../${NEWLIBDISTO}/configure --target=$TARGET --prefix=$PREFIX \
 	2>&1 | tee configure.log

+    make all install info install-info 2>&1 | tee make.log
 esac


-make all install info install-info 2>&1 | tee make.log cd ..

# test to see if this step passed


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]