[英]How do I execute a standard GCC "configure" script with the TDM64-GCC toolchain?
TDM bin
目录中的哪些可执行文件实际上会将./configure
识别为有效命令?
./configure
is a shell script. ./configure
是一个 shell 脚本。 It will be compatible with bash, sh, and maybe csh.它将与 bash、sh 甚至 csh 兼容。 Probably the first line in it is可能其中的第一行是
#!/bin/sh
or或者
#!/bin/bash
If you are not on Linux or Unix, look for a configure script specifically for your operating system.如果您不在 Linux 或 Unix 上,请寻找专门针对您的操作系统的配置脚本。 Not all tools support non-Unix environments.并非所有工具都支持非 Unix 环境。
First thing you should read the INSTALL
or README
file included with the sources.首先,您应该阅读源代码中包含的INSTALL
或README
文件。 Usually they describe all of the available parameters for the ./configure
script (which is not "standard GCC", but specific to the project).通常,它们描述./configure
脚本的所有可用参数(这不是“标准 GCC”,而是特定于项目)。 For example for the strace
project (picked it randomly, as I've cross-compiled it recently), if you want to cross-compile it with your tdm64-whatever-gcc
toolchain, you have to specify it in the host
parameter:例如对于strace
项目(随机挑选,因为我最近交叉编译了它),如果你想用你的tdm64-whatever-gcc
工具链交叉编译它,你必须在host
参数中指定它:
./configure --host=tdm64-whatever
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.