Name

gcc_select

Synopsis

gcc_select [-v | --version] [-h | --help] [-l | --list]

gcc_select [-v | --version] [-n] [-force] [-root] [-dstroot pathname] { 2 | 
3 | 3.x }

Description

A shell script that sets the default version of GCC (either 2.95.2 (2), 3.1 (3), or some other version (specified as 3. x)) by creating various symlinks for compiler tools, libraries, and headers. With no arguments (or with just -v), the current default version is printed to standard output.

Options/Usage

-dstroot

Specifies the root-level directory where changes are made. The default is /usr.

-force

Recreates symlinks for the specified version, even if it is already the current default version.

-h | --help

Prints a usage statement to standard output.

-l | --list

Lists available GCC versions.

-n

Prints the list of commands that would be executed to standard output, but does not actually execute them.

-root

Disables the initial check for root access before executing commands.

-v | --version

Prints the version of gcc_select to standard output.

Location

/usr/sbin

Get Mac OS X Panther for Unix Geeks, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.