Search code examples
bashgcccc

What does "CC=/path/to/directory ./configure" do?


What does CC=/path/to/afl/afl-gcc ./configure do? (see. AFL's Readme)

Is it telling GCC to look into that directory for files? (Maybe something like a path-variable, because of the =-character?)

Strange thing also: there is no configure-exe. in that directory.


Solution

  • When you write

    A=B C
    

    The shell runs the command C with the environment variable A set to B.

    The CC environment variable is commonly used to tell configure scripts where a C compiler is located.