| 130 | == Building OSE packages for distribution == |
| 131 | |
| 132 | Never disable hardening (see previous section) when creating packages for redistribution. |
| 133 | |
| 134 | To be more LSB-compliant, change the default pathes which are used by the !VirtualBox binaries to find their components. Add the following build variables to !LocalConfig.kmk: |
| 135 | ''VBOX_PATH_APP_PRIVATE_ARCH := /usr/lib/virtualbox'':: |
| 136 | This is the application's private directory, architecture-dependent. |
| 137 | ''VBOX_PATH_SHARED_LIBS := $(VBOX_PATH_APP_PRIVATE_ARCH)'':: |
| 138 | Where to put the shared libraries, usually the same directory as the private path as the !VirtualBox shared libraries are normally not used by any other application. |
| 139 | ''VBOX_WITH_ORIGIN :='':: |
| 140 | Disable ''RPATH=$ORIGIN'' and use a fixed ''RUNPATH''. |
| 141 | ''VBOX_WITH_RUNPATH := $(VBOX_PATH_APP_PRIVATE_ARCH)'':: |
| 142 | Set ''RUNPATH'' to the directory where our shared libraries can be found. |
| 143 | ''VBOX_PATH_APP_PRIVATE := /usr/share/virtualbox'':: |
| 144 | This is the applications's private directory, not architecture-dependent. |
| 145 | ''VBOX_PATH_APP_DOCS := /usr/share/doc/virtualbox'':: |
| 146 | Set the directory containing the documentation. The file !VirtualBox.chm and !UserManual.pdf (both are not part of the OSE distribution) are searched within this directory. |
| 147 | ''VBOX_WITH_TESTCASES :='':: |
| 148 | Save compile time by not building the testcases. |
| 149 | ''VBOX_WITH_TESTSUITE :='':: |
| 150 | Save compile time by not building the testsuite. |
| 151 | |
| 152 | |
| 153 | |