Tim,
On Tue, 9 Mar 2004, Tim Jenness wrote:
> alink needs to use
>
> alinkextraflags='-static-libgcc -Wl,--static'
>
> to get the static link to build for me on gcc/RedHat9. The static-libgcc
> part tells it to link against libgcc.a rather than a shared libgcc_s
> (which doesn't seem to work if you are linking with --static).
Right -- that'll fix the problem that various folk were having
building sst on RH9, reporting problems linking with -lgcc_s. Much
ta.
> I don't
> know how to fix the configure system to insert these flags for gcc builds
> (as opposed to sun solaris compiler builds) so I'll leave that to you.
Unfortunately, neither do I, off-hand. It's actually a job for
libtool -- that is, I should modify alink to use libtool instead of
generating the link commands itself. It's probably not hard, but I
don't think it's at the very top of the list yet.
I've modified alink and ilink to change this flag, and added a test of
whether we're using g77, and if we're not, warn that the link will
probably fail.
> With the above fix, the system builds through to completion for the first
> time for me.
Excellent!
Norman
--
---------------------------------------------------------------------------
Norman Gray http://www.astro.gla.ac.uk/users/norman/
Physics and Astronomy, University of Glasgow, UK [log in to unmask]
|