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] |
I sat down and compared Bill Gatliff's script to the commands Karim gives in his book for building cross toolchains. The two are near-twins, although Karim doesn't present them as a script per se. Here are a few notes, with line numbers in Bill's script:
214-216, 239-241: repeated code in Bill's, maybe nicer to hoist
it out of the case. Also, Bill doesn't copy asm-generic, but Karim does.
(Is that important? Possibly, if some arches use the generic include files
instead of providing their own? Which arches do that?)
301-304, 328-331: repeated code in Bill's, maybe nicer to hoist
it out of the case.
Also, Bill passes --with-local-prefix=$(PREFIX)/$(TARGET) to gcc's
configure, Karim doesn't. Presumably that prevents searching
/usr/local/include, which sounds important.
http://www.ugcs.caltech.edu/info/gcc/install_3.html says
"The default value for @option{--with-local-prefix} is `/usr/local' regardless of the value of @option{--prefix}."
(But see also http://gcc.gnu.org/ml/gcc-bugs/2000-06/msg00197.html)
367: Karim doesn't override AR or RANLIB. That might be a problem on some architectures, causing bad manifests in .a files?
387: Karim overrides install_root=${TARGET_PEFIX},
but Bill uses the default. This is understandable given the
difference in --prefix. Karim's right, I think.
Also, Karim gives prefix="", which I think is just his personal
bias; I think it causes libraries to end up in /lib instead of
/usr/lib on the target.
388: Karim fixes up paths in ld.so, but Bill doesn't.
Need to remove absolute paths from the ld.so in ${TARGET_PREFIX)/lib;
maybe Bill just forgot to mention that?
Smash the two together and we have our holy grail of a Bill script updated to 3.2.3 :-)
Bill, do you agree about the absolute path problem in --prefix and in ld.so?
------ 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] |