为什么禁用gcc 4.7中的shared与gmp-mpfr-mpc一起构建用于本机编译



环境:
cpu:XEON NEHALEM E5530
操作系统:SUSE 10 SP2
gcc:4.1.2

m4,binutils,autoconf,automake:更新了gcc 4.7版本所需的最新版本
PATH/LD_LIBRARY_PATH设置正确。

对象:gcc-php-httpd的本机优化。


with -march=nocona -O2 -pipe -fomit-frame-pointer  
gcc 4.1.2  gmp,mpfr,mpc OK  
gcc 4.1.2  gcc4.7 with gmp,mpfr,mpc OK  
with -march=native -O2 -pipe -fomit-frame-pointer  
gcc 4.7  gmp,mpfr,mpc OK  
gcc 4.7  gcc4.7 with gmp,mpfr,mpc OK 
newest built gcc 4.7  
gcc 4.7  ppl,cloog OK  
gcc 4.7 build source tree together with gmp,mpfr,mpc,ppl,cloog  
error in configure ppl because not found gmp library.  
gcc 4.7 build source tree for native compile together with gmp,mpfr,mpc without ppl and cloog OK

但是通过检查子目录中的config.log来禁用系统添加的shared,尽管显式地gcc 4.7 configure--enable shared--disable static。ppl的配置帮助中没有列出ppl中的配置参数。

但是通过检查子目录中的config.log来禁用系统添加的共享,尽管明确地说gcc 4.7配置-启用共享-禁用静态

gcc分几个阶段构建。早期阶段使用--disable-shared开关。

最新更新