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: crosstool.sh --doubt?


Poornachandran, RajeshX wrote:
 I don't clearly what you are doing in this part of code in
crosstool.sh:

for file in libc.so libpthread.so libgcc_s.so; do
  for lib in lib lib64 usr/lib usr/lib64; do
	if test -f ${SYSROOT}/$lib/$file && test ! -h
${SYSROOT}/$lib/$file; then
		mv ${SYSROOT}/$lib/$file ${SYSROOT}/$lib/${file}_orig
		if test -z "$USE_SYSROOT"; then
		  sed
's,/usr/lib/,,g;s,/usr/lib64/,,g;s,/lib/,,g;s,/lib64/,,g;/BUG in
libc.scripts.output-format.sed/d' < ${SYSROOT}/$lib/${file}_orig >
${SYSROOT}/$lib/$file
	        else
		  sed '/BUG in libc.scripts.output-format.sed/d' <
${SYSROOT}/$lib/${file}_orig > ${SYSROOT}/$lib/$file
		fi
	fi
    done
done

Could you please let me know what you are doing in the above mentioned
code.

Two things: getting rid of the "BUG" line (see http://sources.redhat.com/ml/bug-glibc/2003-05/msg00055.html http://lists.debian.org/debian-glibc/2003/08/msg00367.html) and, for 64 bit systems, adjusting a path (see http://www.x86-64.org/lists/bugs/msg00875.html)

Do I need this part when I build with gcc-3.4.0 ?

Probably.  You ask a lot of questions, but you don't say
what problems you're running into.  Are you actually running
the scripts, or just desk-checking them?
- Dan

--
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

------
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]