配置选项,例如“ --extra-cflags”-我很困惑

Hen*_*nry 3 iphone macos configure ios

    # configure for i386 build
./configure \
--cc=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc \
--as='gas-preprocessor.pl /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' \
--sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk \
--extra-ldflags=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/system \
--target-os=darwin \
--arch=i386 \
--cpu=i386 \
--extra-cflags='-arch i386' \
--extra-ldflags='-arch i386' \
--prefix=compiled/i386 \
--enable-cross-compile \
--disable-armv5te \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffserver \
--disable-ffprobe \
--disable-doc
Run Code Online (Sandbox Code Playgroud)

下面将为i386构建ffmpeg静态库。但我不知道该选项的含义,例如“ --extra-cflags”?”-extra-ldflags“?”-sysroot =“?”-as =“。

谁能告诉我这些选择的意思?在哪里可以找到详细说明?

谢谢 。我在等你的帮助。

Ern*_*ill 6

您始终可以将configure脚本运行为configure --help; 它将打印使用说明和有关许多可接受参数的信息-通常,希望是特定于软件包的参数。

也就是说,--extra-cflags将为C编译器提供额外的命令行开关,为--as汇编程序提供路径,--sysroot为替代安装目录,并--extra-ldflags为链接程序提供额外的标志。这些都相当先进,您不太需要使用它们。