<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>Glibc 2 HOWTO: Sample specs file.</TITLE> <LINK HREF="Glibc2-HOWTO-11.html" REL=next> <LINK HREF="Glibc2-HOWTO-9.html" REL=previous> <LINK HREF="Glibc2-HOWTO.html#toc10" REL=contents> </HEAD> <BODY> <A HREF="Glibc2-HOWTO-11.html">Next</A> <A HREF="Glibc2-HOWTO-9.html">Previous</A> <A HREF="Glibc2-HOWTO.html#toc10">Contents</A> <HR> <H2><A NAME="specs"></A> <A NAME="s10">10. Sample specs file.</A></H2> <P> <!-- glibc!GCC specs file, sample --> <P>Included here is a sample <CODE>specs</CODE> file for glibc 2 which is used by gcc for compiling and linking. It should be found in the directory <CODE>/usr/lib/gcc-lib/<new system dir>/<gcc version></CODE>. If you are running an x86 system, you probably can copy this section to the file exactly. <BLOCKQUOTE><CODE> <PRE> *asm: %{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} *asm_final: %{pipe:-} *cpp: %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!m386:-D__i486__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} *cc1: %{profile:-p} *cc1plus: *endfile: %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s *link: -m elf_i386 %{shared:-shared} %{!shared: %{!ibcs: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} %{static:-static}}} *lib: %{!shared: %{pthread:-lpthread} %{profile:-lc_p} %{!profile: -lc}} *libgcc: -lgcc *startfile: %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s} *switches_need_spaces: *signed_char: %{funsigned-char:-D__CHAR_UNSIGNED__} *predefines: -D__ELF__ -Dunix -Di386 -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386) *cross_compile: 0 *multilib: . ; </PRE> </CODE></BLOCKQUOTE> <P> <HR> <A HREF="Glibc2-HOWTO-11.html">Next</A> <A HREF="Glibc2-HOWTO-9.html">Previous</A> <A HREF="Glibc2-HOWTO.html#toc10">Contents</A> </BODY> </HTML>