LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 568|回复: 0

crossdev生成mips glibc时march无法设置?

[复制链接]
发表于 2009-10-16 06:51:12 | 显示全部楼层 |阅读模式
使用crossdev -t mips-unknown-linux-gnu生成交叉编译环境。

其中mips glibc是目标系统的二进制文件,希望用march=mips32r2来优化指令。

但是无论改make.conf还是 CFLAGS="-O2 -pipe -march=mips32r2" emerge cross-mips-unknown-linux-gnu/glibc命令行生成,
这个glibc的ebuild始终把我的CFLAGS中的march给去掉了,到头来出来的总是mips1的binaray。这是啥原因,怎么弄?

head -n 160 /var/log/portage/cross-mips-unknown-linux-gnu-glibc.log

  1. >>> Verifying ebuild manifests

  2. >>> Emerging (1 of 1) cross-mips-unknown-linux-gnu/glibc-2.9_p20081201-r3 from unknown repo
  3. * glibc-2.9-patches-6.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...           [ ok ]
  4. * glibc-2.9-20081201.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
  5. * glibc-2.9-ports-20081201.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...      [ ok ]
  6. * checking ebuild checksums ;-) ...                                     [ ok ]
  7. * checking auxfile checksums ;-) ...                                    [ ok ]
  8. * checking miscfile checksums ;-) ...                                   [ ok ]
  9. >>> Unpacking source...
  10. * Checking gcc for __thread support ...
  11.   [ ok ]
  12. * Checking linux-headers version (2.6.27 >= 2.6.9) ...
  13.   [ ok ]
  14. >>> Unpacking glibc-2.9-20081201.tar.bz2 to /var/tmp/cross/mips-unknown-linux-gnu/portage/cross-mips-unknown-linux-gnu/glibc-2.9_p20081201-r3/work
  15. >>> Unpacking glibc-2.9-ports-20081201.tar.bz2 to /var/tmp/cross/mips-unknown-linux-gnu/portage/cross-mips-unknown-linux-gnu/glibc-2.9_p20081201-r3/work/glibc-2.9-200
  16. >>> Unpacking glibc-2.9-patches-6.tar.bz2 to /var/tmp/cross/mips-unknown-linux-gnu/portage/cross-mips-unknown-linux-gnu/glibc-2.9_p20081201-r3/work
  17. * Applying Gentoo Glibc Patchset 2.9-6 ...
  18. *   0008_all_glibc-2.9-linker-scripts.patch ...
  19.   [ ok ]
  20. *   0010_all_glibc-2.7-ssp-compat.patch ...
  21.   [ ok ]
  22. *   0030_all_glibc-respect-env-CPPFLAGS.patch ...
  23.   [ ok ]
  24. *   0040_all_glibc-i586-chk.patch ...
  25.   [ ok ]
  26. *   0045_all_glibc-2.10-gcc-4.4-nptl.patch ...
  27.   [ ok ]
  28. *   0050_all_glibc-_nss_dns_gethostbyaddr2_r-check-and-adjust-the-buffer-alignment.patch ...
  29.   [ ok ]
  30. *   0051_all_glibc-2.9-add_prio-macros.patch ...
  31.   [ ok ]
  32. *   0052_all_glibc-2.9-regex-BZ9697.patch ...
  33.   [ ok ]
  34. *   0053_all_glibc-2.9-regex-BZ697.patch ...
  35.   [ ok ]
  36. *   0054_all_glibc-2.9-BZ9706.patch ...
  37.   [ ok ]
  38. *   0070_all_glibc-i386-x86_64-revert-clone-cfi.patch ...
  39.   [ ok ]
  40. *   0080_all_glibc-2.10-dns-no-gethostbyname4.patch ...
  41.   [ ok ]
  42. *   0085_all_glibc-disable-ldconfig.patch ...
  43.   [ ok ]
  44. *   0090_all_glibc-math-tests.patch ...
  45.   [ ok ]
  46. *   1010_all_glibc-queue-header-updates.patch ...
  47.   [ ok ]
  48. *   1018_all_glibc-awk-in-C-locale.patch ...
  49.   [ ok ]
  50. *   1020_all_glibc-2.9-strlen-hack.patch ...
  51.   [ ok ]
  52. *   1030_all_glibc-manual-no-perl.patch ...
  53.   [ ok ]
  54. *   1040_all_2.3.3-localedef-fix-trampoline.patch ...
  55.   [ ok ]
  56. *   1050_all_glibc-i386-LOAD_PIC_REG.patch ...
  57.   [ ok ]
  58. *   1055_all_glibc-resolv-dynamic.patch ...
  59.   [ ok ]
  60. *   1070_all_glibc-fadvise64_64.patch ...
  61.   [ ok ]
  62. *   1073_all_glibc-ldbl-nexttowardf.patch ...
  63.   [ ok ]
  64. *   1075_all_glibc-section-comments.patch ...
  65.   [ ok ]
  66. *   1080_all_glibc-no-inline-gmon.patch ...
  67.   [ ok ]
  68. *   1085_all_glibc-2.9-check_native-headers.patch ...
  69.   [ ok ]
  70. *   1090_all_glibc-2.3.6-fix-pr631.patch ...
  71.   [ ok ]
  72. *   1095_all_glibc-2.9-assume-pipe2.patch ...
  73.   [ ok ]
  74. *   1100_all_glibc-2.3.3-china.patch ...
  75.   [ ok ]
  76. *   1103_all_glibc-new-valencian-locale.patch ...
  77.   [ ok ]
  78. *   1130_all_glibc-2.4-undefine-__i686.patch ...
  79.   [ ok ]
  80. *   1160_all_glibc-2.8-nscd-one-fork.patch ...
  81.   [ ok ]
  82. *   1504_all_glibc-2.7-hppa-pie.patch ...
  83.   [ ok ]
  84. *   1530_all_glibc-m68k-sys-user.patch ...
  85.   [ ok ]
  86. *   3000_all_2.3.6-dl_execstack-PaX-support.patch ...
  87.   [ ok ]
  88. *   3010_all_2.3.3_pre20040117-pt_pax.patch ...
  89.   [ ok ]
  90. *   3020_all_glibc-tests-sandbox-libdl-paths.patch ...
  91.   [ ok ]
  92. *   5021_all_2.9-fnmatch.patch ...
  93.   [ ok ]
  94. *   5063_all_glibc-dont-build-timezone.patch ...
  95.   [ ok ]
  96. *   5070_all_glibc-2.7-cross-compile-nptl.patch ...
  97.   [ ok ]
  98. *   6001_all_alpha-glibc-2.4-xstat.patch ...
  99.   [ ok ]
  100. *   6015_all_alpha-glibc-2.5-no-page-header.patch ...
  101.   [ ok ]
  102. *   6016_all_alpha-glibc-2.5-no-asm-elf-header.patch ...
  103.   [ ok ]
  104. *   6017_all_alpha-glibc-2.8-creat.patch ...
  105.   [ ok ]
  106. *   6018_all_alpha-glibc-2.8-cache-shape.patch ...
  107.   [ ok ]
  108. *   6018_all_glibc-ptr-mangling.patch ...
  109.   [ ok ]
  110. *   6019_all_alpha-floor_ceil_fix.patch ...
  111.   [ ok ]
  112. *   6120_all_ppc-glibc-2.9-atomic.patch ...
  113.   [ ok ]
  114. *   6220_all_glibc-2.4-arm-cirrus-ep93xx-maverick-crunch-fpu.patch ...
  115.   [ ok ]
  116. *   6221_all_arm-glibc-2.9-hidden-fpu-setjmp.patch ...
  117.   [ ok ]
  118. *   6222_all_arm-glibc-2.9-pie.patch ...
  119.   [ ok ]
  120. *   6240_all_glibc-2.8-nptl-lowlevellock.patch ...
  121.   [ ok ]
  122. *   6400_all_sh-glibc-2.3.2-fpscr_values.patch ...
  123.   [ ok ]
  124. *   6417_all_sh-glibc-2.9-less-asm-headers.patch ...
  125.   [ ok ]
  126. *   6418_all_sh-glibc-2.9-set-fpscr-proto.patch ...
  127.   [ ok ]
  128. *   6600_mips_librt-mips.patch ...
  129.   [ ok ]
  130. *   6605_all_glibc-2.4-fpu-cw-mips.patch ...
  131.   [ ok ]
  132. *   6610_all_glibc-r10k-workarounds.patch ...
  133.   [ ok ]
  134. *   6630_all_glibc-mips-n32-ldconfig.patch ...
  135.   [ ok ]
  136. *   6645_all_glibc-mips_shn_undef-hack.patch ...
  137.   [ ok ]
  138. * Done with patching
  139. * Using GNU config files from /usr/share/gnuconfig
  140. *   Updating scripts/config.sub
  141.   [ ok ]
  142. *   Updating scripts/config.guess
  143.   [ ok ]
  144. >>> Source unpacked in /var/tmp/cross/mips-unknown-linux-gnu/portage/cross-mips-unknown
  145. >>> Compiling source in /var/tmp/cross/mips-unknown-linux-gnu/portage/cross-mips-unknow

  146. *             ABI:   default
  147. *          CBUILD:   x86_64-pc-linux-gnu
  148. *           CHOST:   x86_64-pc-linux-gnu
  149. *         CTARGET:   mips-unknown-linux-gnu
  150. *      CBUILD_OPT:
  151. *     CTARGET_OPT:
  152. *              CC:
  153. *          CFLAGS:    -pipe -O2 -fno-strict-aliasing

  154. * Configuring GLIBC for nptl with:
  155. *              --disable-stackguard-randomization
  156. *              --enable-old-ssp-compat
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表