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]

linux hosted solaris target xgcc specs


Hi.

gcc 3.2.

When I build gcc (after binutils -- which always just works..) for
solaris from linux_x86, the 'specs' generated for 'xgcc' look wrong.

configuring with:

prefix=/private/gnu
target=sparc-sun-solaris2.8
pkg=gcc

$prefix/src/$pkg/configure \
 --prefix=$prefix \
 --target=$target \
 --enable-threads=posix \
 --enable-long-long \
 --with-gnu-ld \
 --with-gnu-as \
 --enable-languages=c,c++

and having full copies of solaris /usr/include and /usr/lib in
$prefix/$target/include, and ../lib respectively all goes through
the build of xgcc.  But the specs file build appears to be telling
$target-ld to get opcodes from /usr/lib/ instead of /$prefix/$target/lib
for the 'sparcv9' stuff.

:--gcc/specs----snip---re-formated to help me read it..-----------

*startfile:
%{!shared:
 %{!symbolic:
  %{p:mcrt1.o%s}
   %{!p: %{pg:gcrt1.o%s gmon.o%s} %{!pg:crt1.o%s}}}} crti.o%s

%{m32:
 %{ansi:values-Xc.o%s}
 %{!ansi:
  %{traditional:values-Xt.o%s}
  %{!traditional:values-Xa.o%s}}}

%{m64:
 %{ansi:/usr/lib/sparcv9/values-Xc.o%s}
 %{!ansi:
  %{traditional:/usr/lib/sparcv9/values-Xt.o%s}     <-------
  %{!traditional:/usr/lib/sparcv9/values-Xa.o%s}}}  <--------

%{!m32:
 %{!m64:
  %{ansi:values-Xc.o%s}
  %{!ansi:
   %{traditional:values-Xt.o%s}
   %{!traditional:values-Xa.o%s}}}} crtbegin.o%s
:-----------snip--------

Can someone help me understand why?

Thanx.


--
David Updegraff / dave@toimi.com / 218.525.1154


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