[Hugs-bugs] problems building on Solaris

Alastair Reid alastair at reid-consulting-uk.ltd.uk
Tue Jun 1 05:59:44 EDT 2004


On Monday 31 May 2004 23:07, herington, dean wrote:
> After a hiatus, I'm back trying to get Hugs built for Solaris.  I never had
> a reply to the message attached below.  Can anyone help?
>
> One newly noticed bit of puzzlement: configure yields:
>
> /* C compiler invocation use to build a dynamically loadable library.
>  * Typical value: "gcc -shared"
>  * Must evaluate to a literal C string.
>  */
> #define MKDLL_CMD "gcc -g   -r"
>
> but I can't find any mention of "-r" for gcc on Sparc.

Try editing the value of MKDLL_CMD using flags like:

-Wl,-r
-Wl,-shared
-Wl,-split-by-reloc -Wl,32768

The -Wl, part passes the following flag through to the linker.

I'm not sure exactly what flags to use though because the sparc system 
available to me only seems to have GNU ld on it so I can't find a Sun ld 
manpage.  (If you can forward 'man ld' to me, I might recognise the flags to 
use.)

The goal in all this is to perform a 'partial link' which combines a bunch of 
separate .o and .a files into a single .o (or .so?) file.  This differs from 
a normal link in that there is no 'start symbol' (e.g., '_main') in the input 
files and the output is _not_ an executable file.

--
Alastair Reid


More information about the Hugs-Bugs mailing list