Linking a library
Daniel Wells
daniel_wells@byu.edu
Fri Nov 19 08:17:00 GMT 2004
I submitted the following question to gcc-help@gcc.gnu.org but the only reponse I have gotten was unclear. It was porbably good advice but they weren't able to eloaborate on specifics. The said the answer most likely laid in modifying the spec file. However they did not know how. So I submit this question to you for your help. Thanks in advance.
---------------------------------------------------------------------
I am trying to program a PC-104 board which is running a version of
TS-Linux. However the code needs to be written and compiled on a
separate development computer. However, TS-Linux and whatever version
of linux is on the development workstation have gcc libraries that most
likely do not match.
I know that the version of TS-Linux uses glibc 2.2.5. On the website for
the PC-104 board they have a file at the following link
http://www.embeddedx86.com/downloads/Linux/ALL.entire.libs.dirs.tar.bz2
Which supposedly has all of the libs needed to compile code to run on
the PC-104 board.
However I do not know how to set up gcc on the development box so that
it links explicitely against these libraries. Is there a way to set it up so that
these libs are the default libs? And if so is there an easy way to set
it up so I can switch between the two easily. (If not I still prefer
the secondary libs to be the default) Thanks for your help.
Dan
More information about the Gcc
mailing list