This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

RE: cross gcc for pc windos x86 as host and powerpc as target









Stephane Dalton <Stephane.Dalton@abl.ca> on 04/26/2000 10:45:29 AM

Sent by:  Stephane Dalton <Stephane.Dalton@abl.ca>


To:   Sudhanshu Tewari/US/3Com, Peter Barada <pbarada@wavemark.com>
cc:   crossgcc@sourceware.cygnus.com
Subject:  RE: cross gcc for pc windos x86 as host and powerpc as target




Hi,

I checked spec file. Those sections are not empty but link section does not
contain
any thing with -T
this is the section of my spec file.

*cc1plus:

*endfile:

*link:
%{mwindows:--subsystem windows}  %{mdll:--dll -e _DllMainCRTStartup@12}

*lib:
%{pg:-lgmon}   %{!mno-cygwin:-lcygwin}  %{mno-cygwin:-lmingw32 -lmoldname
-lcrtdll}  %{mwindows:-luser32 -lgdi32 -lcomdlg32}  -lkernel32 -ladvapi32
-lshell32

*libgcc:
-lgcc

*startfile:
%{mdll: %{!mno-cygwin:dllcrt0%O%s}  %{mno-cygwin:dllcrt1%O%s}}  %{!mdll:
%{!mno-cygwin:crt0%O%s}  %{mno-cygwin:crt1%O%s} %{pg:gcrt0%O%s}}


*linker:
collect2

Is that a problem ?
I am new to gnu field.

Thanks
Sudhanshu


> main(){return(0);}
>
>
> Am i missing some startup file here ?
> I copied some target crt.o file to /usr/target/include directory.
     [Stephane Dalton]  Make sure you've take a look at the specs file
used by gcc... (you can find the path using the -v switch) under the
     *link section you should see -Tsomething.ld%s and under *lib section
you sould see (typically) the same -lsomething -lc if those sections are
empty that might be your problem.

     Hope this will help

     bye



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






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


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