r1 - 14 Jan 2005 - 16:45:26 - BobKrzaczekYou are here: TWiki >  Help Web  >  AdminStuff > SoftwareInstalls > BuildingGCC > BuildingBinUtils
Tags:
create new tag
, view all tags
  • Version: 2.15
  • Summary: GNU versions of binary tools like ar, ld, nm, and friends.

Obtaining

Pull down the latest version from the GNU ftp site. Unpack in /cis/src/gnu. Something like the following ought to do...

cd /cis/src/gnu
wget ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.15.tar.bz2
bzip2 -dc binutils-2.15.tar.bz2 |tar xf -
cd binutils-2.15

Environment

Clean all the usual tool crud out of your environment.

unset CC CXX F77 F90 CFLAGS CXXFLAGS F77FLAGS F90FLAGS
unset CPPFLAGS LDFLAGS

Minimize your PATH. Note that if you don't already have some form of GNU compiler installed under /gnu/bin, you'll need to add /opt/SUNWspro/bin to this PATH. If you don't already have GNU make installed under /gnu/bin, you'll need to add /cis/bin to your PATH.

PATH=/bin:/usr/bin:/gnu/bin:/usr/ccs/bin
export PATH

Solaris

Since we don't worry about cross compilation environments and whatnot, it's not too important where the tooldir lives. What is important is that GNU's default location, exec_prefix/tooldir, won't work since /gnu is managed by the automounter, and not a plain directory.

./configure --prefix=/gnu
make
make tooldir=/gnu/share/sparc-sun-solaris2.8 install
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback