2012-05-09 95 views
1

当我运行gcc配置,e.ggcc configure,设置默认值?

./configure 

我不喜欢这样

./configure \ 
    --host=x86_64-w64-mingw32 \ 
    --prefix=/usr/x86_64-w64-mingw/sys-root/mingw 

有没有办法让这些设置在默认情况下的configure所有invokations?也许是一个环境变量?

+1

线可能比一个环境变量更好的脚本是一个bash别名。 – OmnipotentEntity

回答

1

对于使用Autoconf生成的configure脚本,确实存在使用environment variable CONFIG_SITE的设施。

使用export CONFIG_SITE=/path/to/my.config.site,在该文件的内容是沿着

test -z "$host_alias" && host_alias=x86_64-w64-mingw32 
test "$prefix" = NONE && prefix=/usr/x86_64-w64-mingw/sys-root/mingw