Rebuilding the XFree86 Distribution

# 8 Rebuilding the XFree86 Distribution

Contents of this section

The server link kit allow you to rebuild just the X server with a minimum amount of disk space. Just unpack it, make the appropriate changes to the `site.def`, type ```./mkmf`'' and ```make`'' to link the server. See `/usr/X11R6/lib/Server/README` for more info.

See INSTALL for instructions on unbundling and building the source distribution.

You should configure the distribution by editing `xc/config/cf/xf86site.def` before compiling. To compile the sources, invoke ```make World`'' in the xc directory.

## 8.1 Console drivers

XFree86 3.1.0C has now a configuration option to select the console drivers to use in `xf86site.def`:

- if you're using pccons put:

  > `

  >      #define XFree86ConsoleDefines -DPCCONS_SUPPORT

  > `

- if you're using pcvt put:

  > `

  >      #define XFree86ConsoleDefines -DPCVT_SUPPORT

  > `

- if you're using syscons put:

  > `

  >      #define XFree86ConsoleDefines -DSYSCONS_SUPPORT

  > `

- if you're running codrv put:

  > `

  >      #define XFree86ConsoleDefines -DCODRV_SUPPORT

  > `

If you don't define XFree86ConsoleDefines in `xf86site.def` the pccons, pcvt and syscons drivers will be supported.

## 8.2 console.h and ioctl_pc.h files:

If you want to build a server supporting syscons or codrv and you don't already have the corresponding header files `console.h` and `ioctl_pc.h` installed in `/usr/include/machine`, then install the copies that are supplied in `xc/programs/Xserver/hw/xfree86/etc`. If you run NetBSD-current you probably want to install them in `/usr/src/sys/arch/i386/include` too, so that they get reinstalled each time you make install in `/usr/src/include`.

Another way to keep these files accessible is to make a symbolic link like this in the `xc` directory (suggested by Andrew Cagney cagney@highland.com.au):

> `ln -s programs/Xserver/hw/xfree86/etc machine`

If you have installed the syscons or codrv console drivers, these files should be taken from your installed version of the driver.

## 8.3 Support for shared libs under NetBSD 1.0

By default XFree86 3.1.1 builds for NetBSD 1.0 with shared libraries support. If you're building on 0.9 or don't want shared libraries add the following line to `xf86site.def`:

> `#define BuildBsdSharedLibs NO`

## 8.4 Building on NetBSD/sparc

XFree86 3.1.1 now also compiles on NetBSD/sparc. The Sun server patches from Dennis Ferguson and Matthew Green have been integrated in `xc/programs/Xserver/hw/sun`. Small modifications to `xf86site.def` are needed:

- Set all variables defining the servers to build to NO. (The variables controlling the Sun servers to build Xsun24Server, XsunServer and XsunMonoServer are defined at the end of `NetBSD.cf`.)
- Set ServerToInstall to the sun server of your choice. (Xsun or XsunMono).
- Look at other applicable options in the INSTALL document .

Problems with this port should be reported to the port-sparc@NetBSD.Org mailing list or directly to me matthieu@laas.fr rather than to the xfree86 mailing list.

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter