-static

Simon Marlow simonmar at microsoft.com
Mon Mar 8 11:07:07 EST 2004


 
> In ghc/compiler/main/DriverFlags.hs machdepCCOpts includes a "-static"
> flag for some arches. Is this really necessary? I can't see 
> any comments
> as to why, nor any real answers from a quick google.

I can't remember why either.

> It causes this when compiling darcs on these arches:
> 
> /usr/lib/ghc-6.2/libHSunix.a(User.o)(.text+0x2a2c): In 
> function `s6T9_ret':
> : warning: Using 'getgrgid_r' in statically linked 
> applications requires at runtime the shared libraries from 
> the glibc version used for linking
> 
> which I assume would lead to too strict dependencies on glibc being
> necessary.

What platform?  Does everything work if you remove the -static?

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list