首页
> 编程技术 > 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)
★ 樊强制作 欢迎分享 ★