Continued: Solaris 8 -> Sol 7 cross-compiler problem
miki.shapiro@eAladdin.com
miki.shapiro@eAladdin.com
Thu Jun 20 03:24:00 GMT 2002
More tests followed, and I found out that
1. Compiled similarly on Solaris 7 NATIVE compiler,
it works fine when I do:
-I/usr/include
and crashes when I softlink:
/usr/local/sparc-sun-solaris2.7/include
to
/usr/include
and add:
"-I/usr/local/sparc-sun-solaris2.7/include to /usr/include" instead.
Furthermore, it uses /usr/ucbincludes by default, as described by gcc's
specs. great.
My cross-compiler questions:
1. Was I supposed to provide solaris2.7 ucbincludes and ucblibs when I was
building the cross-compiler?
2. Was it supposed to fix some of them (using fixincludes) during
compilation and place them in
/usr/local/lib/gcc-lib/$target/$cc-ver/include ?
3. If I copy these includes/libs from the S7 box to the S8 with the
cross-compiler, What should be the order of the "-I" include pointing?
If I understand correctly, It's GCC fixed -> overrides UCB -> overrides the
S7's base /usr/includes.
4. Maybe I can point the cross-gcc's specs (on the S8 box) to the right
directory (/usr/local/sparc-sun-solaris-2.7/ucbinclude) altogether, and
save myself the "-I"'s in the makefiles.
Suggestions?
Thanks!
--
Miki Shapiro <mikis@aAladdin.com>
Unixophilic Software Developer
Aladdin Knowledge Systems
---------------------------------------------
Tel: +972-(4)-8811433 ICQ: 3EE853
---------------------------------------------
God is real... unless declared an integer.
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list