Information for SCO OpenServer Users : Compiling XFree86
Previous: Requirements
Next: Before Running XFree86

## 2. Compiling XFree86

Using the GNU Development System, compiling XFree86 should be fairly straightforward. Before attempting to compile the system though, you should make sure that you have met all of the requirements above. To actually start the compilation, perform the following steps:

- Copy the unmodified `xf86site.def` in `xc/config/cf` to `host.def`. Edit `host.def` and make any changes you think you need. The most useful options to change are `HasTcl`, `HasTk`, `HasXdmAuth` if you have the file `WrapHelp.c` and `GccWarningOptions`. Due to the nature of OpenServer's header files, the default options for this last setting are a bit aggressive, and I recommend you set this option to `-Wpointer-arith`.
- Make sure that the official version of the GNU Development System is first in your `PATH`. The official version lives in `/usr/gnu/bin`, and the Skunkware version (if any) lives in `/usr/local/bin`. You must ensure that `/usr/gnu/bin` appears first in your `PATH`.
- Go to the top level of the source tree and execute the command `CC=gcc make World BOOTSTRAPCFLAGS=-DSCO5 2>&1 | tee world.log`. This will do a full build, and send all of the build results to the file `world.log`.
- If the build has succeeded, install the new server by executing the command `make install 2>&1 | tee install.log` as root. This will send the install results to the file `install.log`.
- If you want to install the manual pages, execute the command `make install.man 2>&1 | tee -a install.log` as root.

Information for SCO OpenServer Users : Compiling XFree86
Previous: Requirements
Next: Before Running XFree86