cygport/lib/compilers.cygpart

Cygport Reference Manual

### TABLE OF CONTENTS

- Compiling

- lndirs
- manifestize
- cygmake
- src_compile
- CC
- CFLAGS
- CPPFLAGS
- CXX
- CXXFLAGS
- F77
- FFLAGS
- FC
- FCFLAGS
- GCJ
- GCJFLAGS
- GOC
- GOFLAGS
- OBJC
- OBJCFLAGS
- OBJCXX
- OBJCXXFLAGS
- LDFLAGS
- AR
- DLLTOOL
- NM
- RANLIB
- RC
- STRIP
- PKG_CONFIG
- CC_SYSROOT
- ARCH
- ARCH_i686
- ARCH_x86_64

## Compiling

[ Top ] [ Chapter 8 ] [ Concepts ]

## CC

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The GCC C compiler.

## CFLAGS

[ Top ] [ Compiling ] [ Variables ]

DESCRIPTION

Flags passed to CC when compiling C code. Individual packages may append or override this value if they will not build correctly without it.

DEFAULT VALUE

      -ggdb -O2 -pipe -Wimplicit-function-declaration

## CPPFLAGS

[ Top ] [ Compiling ] [ Variables ]

DESCRIPTION

Flags passed to the preprocessor. Individual packages may append or override this value if they will not build correctly without it.

## CXX

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The GCC C++ compiler.

## CXXFLAGS

[ Top ] [ Compiling ] [ Variables ]

DESCRIPTION

Flags passed to CXX when compiling C++ code. Individual packages may append or override this value if they will not build correctly without it.

DEFAULT VALUE

      -ggdb -O2 -pipe

## F77

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The GCC Fortran 77 compiler.

SEE ALSO

FC

## FFLAGS

[ Top ] [ Compiling ] [ Variables ]

DESCRIPTION

Flags passed to F77 when compiling Fortran 77 code. Individual packages may append or override this value if they will not build correctly without it.

DEFAULT VALUE

      -ggdb -O2 -pipe

## FC

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The GCC Fortran 95 compiler.

SEE ALSO

F77

## FCFLAGS

[ Top ] [ Compiling ] [ Variables ]

DESCRIPTION

Flags passed to FC when compiling Fortran 95 code. Individual packages may append or override this value if they will not build correctly without it.

DEFAULT VALUE

      -ggdb -O2 -pipe

## GCJ

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The GCC Java native-code compiler.

SEE ALSO

java.cygclass

## GCJFLAGS

[ Top ] [ Compiling ] [ Variables ]

DESCRIPTION

Flags passed to GCJ when native-compiling Java code. Individual packages may append or override this value if they will not build correctly without it.

DEFAULT VALUE

      -ggdb -O2 -pipe

## GOC

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The GCC Go native-code compiler.

## GOFLAGS

[ Top ] [ Compiling ] [ Variables ]

DESCRIPTION

Flags passed to GOC when native-compiling Go code. Individual packages may append or override this value if they will not build correctly without it.

DEFAULT VALUE

      -ggdb -O2 -pipe

## OBJC

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The GCC Objective C compiler.

## OBJCFLAGS

[ Top ] [ Compiling ] [ Variables ]

DESCRIPTION

Flags passed to OBJC when compiling Objective C code. Individual packages may append or override this value if they will not build correctly without it.

DEFAULT VALUE

      -ggdb -O2 -pipe -Wimplicit-function-declaration

## OBJCXX

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The GCC Objective C++ compiler.

## OBJCXXFLAGS

[ Top ] [ Compiling ] [ Variables ]

DESCRIPTION

Flags passed to OBJCXX when compiling Objective C++ code. Individual packages may append or override this value if they will not build correctly without it.

DEFAULT VALUE

      -ggdb -O2 -pipe

## LDFLAGS

[ Top ] [ Compiling ] [ Variables ]

DESCRIPTION

Flags passed to the linker. Individual packages may append or override this value if they will not build correctly without it.

## AR

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The static library archiver for the host platform.

## DLLTOOL

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The DLL import creation tool for the host platform.

NOTE

This tool is available only on Cygwin, Windows, and embedded PE hosts.

## NM

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The symbol listing utility for the host platform.

## RANLIB

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The static library indexer for the host platform.

## RC

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The Windows resource compiler for the host platform.

NOTE

This tool is available only on Cygwin, Windows, and embedded PE hosts.

## STRIP

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The symbol remover for the host platform.

## PKG_CONFIG

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The pkg-config utility for the host platform.

## CC_SYSROOT

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The sysroot used by CC, i.e. the output of $CC -print-sysroot. This is useful when specifying the location of a package's dependency so that it will be correct both when building natively or cross-compiling (e.g. CYGCONF_ARGS="--with-foo-include=${CC_SYSROOT}/usr/include/foo-1"). This is NOT for specifying installation directories for a package being cross-compiled; see CROSS_SYSROOT instead.

## ARCH

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

The Cygwin architecture of the binaries being built (i686 or x86_64), or "noarch" when using cross.cygclass.

NOTE

This variable should only be redefined in a .cygport in one of the following cases:

- the package has no Cygwin compiled code, e.g. it consists only of data or scripts, in which case ARCH="noarch" may be defined;
- the package only builds or works on one architecture due to portability issues (e.g. ILP32 assumptions occasionaly found in older code), in which case ARCH should be defined to the working architecture, and cygport will refuse to build this package for the other.

## ARCH_i686

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

Defined only when building binaries for i686 (32-bit) Cygwin.

## ARCH_x86_64

[ Top ] [ Compiling ] [ Definitions ]

DESCRIPTION

Defined only when building binaries for x86_64 (64-bit) Cygwin.