This is the mail archive of the crossgcc@sourceware.org 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]

the beauty of adding "--enable-add-ons=nptl" to glibc headers step


  after a little testing and perusing that aforementioned hunk of code
in the NPTL patch file "crosstool-0.38-nptl-schaefer.patch", it
appears that, ***at least for my case of building for SH3***, i can
get the same effect by just adding "--enable-add-ons=nptl" to the
configure step.

  the effect of adding that to the headers configure step is to
eventually (additionally) run:

	make -C nptl install-headers
	make -C nptl_db install-headers

which does, in fact, install the appropriate files to these locations:

	${HEADERS_DIR}/pthread.h
	${HEADERS_DIR}/bits/pthreadtypes.h

which is precisely what that patch to crosstool.sh would have done
anyway.  and the glibc headers install *already* installs wordsize.h
in the right place, so *that* doesn't need to be done manually.

  (again, i think i've verified that all of this works just fine for
*my* case, but it seems to make only logical sense that even a generic
glibc headers install should install wordsize.h and, if you explicitly
select the NPTL add-on, i'm not at all surprised that it installs the
thread-related header files as well.  in fact, if it *didn't*, i'd
probably bitch and moan that it was broken. :-)  in short, i think a
fair bit of that patch file is superfluous, at least for that step.)

  anyway, out of here for dinner.  more testing this evening.

rday

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


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