1

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.

MrTux
  • 32,350
  • 30
  • 109
  • 146
user1511417
  • 1,880
  • 3
  • 20
  • 41

2 Answers2

5

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.

Adrian
  • 14,931
  • 9
  • 45
  • 70
1

This is a combination of two actions:

  1. Set the environment variable CC to /path/to/afl/afl-gcc
  2. Execute ./configure (with that environment variable)

If both actions are on one line, the environent variable is only passed to this command and is not stored in the environment of the current shell.

The CC can be used to tell the configure script which c comiler to use.

MrTux
  • 32,350
  • 30
  • 109
  • 146