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


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

Specs file


I've built a mingw32->powerpc-eabi cross compiler, using a Solaris host,
based on gcc-2.8.1. It wasn't easy to build, but the compiler works so
far.

I'm now trying to add my own embedded target to the specs file, and I
have a couple of questions:
1) Is there any documentation on how to write a specs file from scratch?
2) How do I add a default library search path (relative to
GCC_EXEC_PREFIX) to the specs file?

So far I have established that adding %s to the end of a file name adds
the specs directory to the start of the file name:
libc.a%s => $(GCC_EXEC_PREFIX)/powerpc-eabi/2.8.1/libc.a

My include files are succesfully found in
$(GCC_EXEC_PREFIX)/powerpc-eabi/2.8.1/include.

All I need now is the ability to link the math library by adding -lm to
the command line.

-- 
Adrian Cox, Transtech Parallel Systems,
________________________________________________
To get help for the crossgcc list, send mail to
crossgcc-request@cygnus.com with the text 'help'
(without the quotes) in the body of the message.