[LLVMbugs] [Bug 6389] LLVM build system ignores compilation flags given to ./configure script

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 22 09:00:21 PST 2010


http://www.llvm.org/bugs/show_bug.cgi?id=6389

--- Comment #2 from Yann Droneaud <yann at droneaud.fr> 2010-02-22 11:00:21 CST ---
Putting flags on ./configure command line is the preferred method.

See ./configure --help:

`configure' configures llvm 2.6 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

[...]

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  F77         Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

-- 
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the llvm-bugs mailing list