Contents|Index|Previous|Next

Multiple host builds

GNUPro Toolkit uses two options so that you can have a directory named /usr/cygnus/release_name, with multiple hosts and target versions in one place.

The host-dependent files are in /usr/cygnus/release_name/H-hostspec. hostspec is the canonical name describing the host. For an IRIX 5 system, the canonical name is mips-sgi-irix5.

A compiler, for whatever target it addresses, is host-dependent so that it only runs on one host system. A help file is host-independent and, so, it is independent of its host system. the following is an example Imagine you have, for instance, HP/UX 10 systems and Sun SPARCstations running Solaris 2 on one network. There is support for native compilers on both systems, and you want a single /usr/cygnus directory that can be NFS-mounted on all of your workstations.

1.
Place all the programs that run on HP/UX 10 systems in the following location.

/usr/cygnus/release_name/H-hppa1.1-hp-hpux10

2.
Place all the programs that run on Solaris 2 systems in the following location.

/usr/cygnus/release_name/H-sparc-sun-solaris2.

This shares the man pages, text configuration files, and other files for GNUPro Toolkit.

For seamless access to these tools, we recommend that you set up two soft links.

- For a progressive release, create a soft-link in /usr/cygnus using the following example’s input.

    % cd /usr/cygnus
    % ln -s release_name progressive

- On each individual host, create another link to the host-specific directory. For instance, on the Solaris 2 systems, use the following example’s input.

    % ln -s /usr/cygnus/progressive/H-hostspec \
    /usr/progressive

With these two links in place, adding /usr/progressive/bin to the path accesses all of the tools on any host. Then you can switch everyone to a new release by simply updating the /usr/cygnus/progressive soft-link.

GNUPro Toolkit configuration has two types of file arguments:

--prefix=
For those which are not specific to a host, specifying the base installation path for the entire GNUPro toolkit.

--exec-prefix=
For those which are specific to a host. Cygnus Solutions has well over 100 different combinations of hosts and targets in one /usr/cygnus/release_name directory, NFS mounted on our workstations. If you only have one workstation type in-house, the
--exec-prefix= distinction is unimportant, although it is still good practice to keep.