Next Previous Contents

10. Sample specs file.

Included here is a sample specs file for glibc 2 which is used by gcc for compiling and linking. It should be found in the directory /usr/lib/gcc-lib/<new system dir>/<gcc version>. If you are running an x86 system, you probably can copy this section to the file exactly.

 %{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}


 %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!m386:-D__i486__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}



 %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s

 -m elf_i386 %{shared:-shared}   %{!shared:     %{!ibcs:       %{!static:   %{rdynamic:-export-dynamic}      %{!dynamic-linker:-dynamic-linker /lib/}}

 %{!shared: %{pthread:-lpthread}  %{profile:-lc_p} %{!profile: -lc}}


 %{!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}



 -D__ELF__ -Dunix -Di386 -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386)


 . ;

Next Previous Contents