GB
| BIG5
首頁
> 編程技術 > C/C++ > 正文
Glibc 2 HOWTO 中文版 -- 9. Specs 檔□例
本文出自: 譯者 Allex Juang, allex@ms2.accmail.com (2001-06-22 22:08:00)
這裡是一份 specs 的□例。這將使 gcc 用 glibc2 來編譯與連結。 它應該位於 /usr/lib/gcc-lib/<新系統目錄>/
. 假如你用的是 x86 的系統,那你也許可以直接將這一段復制到檔案裡去。
*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:
. ; (
http://www.fanqiang.com
)
進入【
UNIX論壇
】
相關文章
Glibc 2 HOWTO 中文版 -- 10. 雜項
(2001-06-23 07:05:01)
Glibc 2 HOWTO 中文版 -- 9. Specs 檔□例
(2001-06-22 22:08:00)
Glibc 2 HOWTO 中文版 -- 8. 報告臭虫
(2001-06-22 21:04:00)
Glibc 2 HOWTO 中文版 -- 7. 編譯 C++ 程式
(2001-06-22 20:10:00)
Glibc 2 HOWTO 中文版 -- 6. 使用非主要的 C 函式庫編譯程式
(2001-06-22 19:00:00)
Glibc 2 HOWTO 中文版 -- 5. 安裝成主要函式庫
(2001-06-22 18:08:00)
Glibc 2 HOWTO 中文版 -- 4. 安裝成測試用的函式庫
(2001-06-22 17:04:00)
Glibc 2 HOWTO 中文版 -- 3. 取得函式庫
(2001-06-22 16:10:00)
Glibc 2 HOWTO 中文版 -- 2. 選擇你的安裝方式
(2001-06-22 15:00:00)
Glibc 2 HOWTO 中文版 -- 1. 簡介
(2001-06-22 14:08:00)
★ 樊強制作 歡迎分享 ★