Configuration options like "-extra-cflags" --- I'm confused

    # 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

ffmpeg static libraries for i386 will be built below. but I don’t know about options like --extra-cflags, extra-ldflags, sysroot =, as-as.

who can tell me about these options? Where can I find an explanation of the details?

thank. I am waiting for your help.

+3
source share
2 answers

You can always run a configurescript like configure --help; it will print an expression of usage and information about many of the accepted parameters - and, as a rule, I hope the package is of interest.

, --extra-cflags C, --as , --sysroot , --extra-ldflags . , .

+4

configure script, Autoconf , C flags (CFLAGS) C (CC). :

CC=/path/to/my/specific/gcc/version CFLAGS="-I/additional/include/dir -L/additional/library/dir" \
./configure --prefix=/installation/dir --host=cross-compiler-triplet-if-any \
--enable-something --with-some-feature --disable-something-else
0

All Articles