<<< Date Index >>>     <<< Thread Index >>>

Re: compile on Solaris 8 with gcc 3.2.2



For the record, find below a bare-bones howto [compile mutt-1.5.4i with
the Japanese patch].  Assumes Solaris 8, gcc3.2.2, Solaris ld, static
linking, csh and installation in private account space.

Have the following or equivalents installed: autoconf-2.57, automake-1.7.8,
m4-1.4, make-3.80, patch-2.5.4, libiconv-1.9.1, and slang-1.4.9.

Get the stub dl* functions at:
     http://www.gnu-pascal.de/crystal/gpc/en/mail5406.html.
[I had to change the names from "dl(open|sym|close|error)" to "_dl*".
** Can anyone on the list tell me what option I might pass to ar to have
it automatically add the "_" prefix? **  TIA]

% cd ~/.usr/lib
% cp /usr/lib/libc.a .
% cp /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/libgcc.a .
% cd ~/
% gzip -dc $HOME/mutt-1.5.4i-ja.1.tar.gz | tar xf -
% gzip -dc $HOME/mutt-1.5.4i.tar.gz | tar xf -
% cd mutt-1.5.4
% gpatch -p1 < ../mutt-1.5.4i-ja.1/patch-1.5.4.tt.ja.1

Edit "configure" on or about line 622 to change `` am__api_version="1.4" ''
to `` am__api_version="1.7" ''.  Edit "configure.in", and delete the two
instances of `` LIBOBJS="$LIBOBJS *.o" '' and uncomment the lines above
them reading `` AC_LIBOBJ([*]) ''.

% setenv CFLAGS "-O2 -I$HOME/.usr/include"
% setenv LIBS "-static -L$HOME/.usr/lib -liconv -lc -ldl"
% setenv LINGUAS ja
% ./configure --prefix=$HOME/.usr --with-slang=$HOME/.usr \
  --with-libiconv-prefix=$HOME/.usr --enable-default-japanese
% gmake
% strip mutt
% gmake install

It works for me, but NO GUARANTEES.

henry

P.S.  I'd like to pare the binary down a little.  Very off topic, but can
      anyone tell me how to find out what object files from external static
      libraries mutt requires so that I can delete out the unnecessary ones
      from libc.a and libslang.a, etc?  TIA