Environment
From Genunix
Contents |
[edit]
Turnkey Build Environment Package
OpenSolaris Engineering -- specifically the GNOME (JDS) team -- provides a pre-packaged, "turnkey" system for building FOSS software. It's called the JDS Common Build Environment (CBE), and one of its main goals (as the name implies) is to support JDS development. However, the CBE was designed to support the building and maintenance of any FOSS software, not just JDS. In other words, for system administrators and others who build and maintain FOSS packages on Solaris, the CBE aims to simplify and improve things for you.
Read about it (and/or get it) ...
- Here: http://www.opensolaris.org/os/project/jds/contributing/building/
- And here: http://pkgbuild.sourceforge.net/
A summary of the relevant attributes of the JDS CBE is included below (in
case, e.g., you want to roll your own compatible build environment).
[edit]
Summary of CBE Attributes
[edit]
Platform
- Solaris Express, aka "Solaris 11". (Solaris 10 should work too, but it hasn't been tested as far as I know.)
[edit]
Compiler
- Studio 11 (Sun's free compiler suite) and gcc 3.4. Sun's cc is generally preferred over gcc, but owing to the gcc-centric nature of some FOSS software, gcc is sometimes necessary.
[edit]
Build tools
- Certain FOSS tools (listed below) should be installed somewhere. For example you might have them in "/opt/fosstools/bin"; or if you're using the JDS build environment, they'll be in /opt/jdsbld/bin.
- The tools are:
autoconf, automake, bison, CVS, diff (GNU),
fileutils, flex (GNU), gettext (GNU), libtool,
m4 (GNU), make (GNU), tar (GNU).
[edit]
PATH environment variable setting
- PATH=/opt/fosstools/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin:/opt/SUNWspro/bin
- (Of course you need to change /opt/fosstools/bin to the FOSS tools directory on your system)
[edit]
Linker
/usr/ccs/bin/ld
- (Of course if you have an ld exectuable -- e.g. GNU ld -- in your FOSS tools directory, you should do something to ensure /usr/ccs/bin/ld gets used instead.)
