当我运行 gcc 配置时,例如
./configure
我这样做
./configure \
--host=x86_64-w64-mingw32 \
--prefix=/usr/x86_64-w64-mingw/sys-root/mingw
有没有办法让这些设置成为默认设置,对于所有的调用configure
?也许是环境变量?
当我运行 gcc 配置时,例如
./configure
我这样做
./configure \
--host=x86_64-w64-mingw32 \
--prefix=/usr/x86_64-w64-mingw/sys-root/mingw
有没有办法让这些设置成为默认设置,对于所有的调用configure
?也许是环境变量?
对于configure
使用 Autoconf 生成的脚本,确实有一个使用环境变量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