id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
1021	GHC static libraries are not position independent in OSX	guest		"GHC static libraries are not built position-independent in OSX, which prevents the user from developing creating dynamic libraries and bundles with Haskell code.

GHC should try to build its libraries with -fPIC in the architectures which admit it.

Here is an example in OSX 10.3/ppc with GHC6.6 (built by macports)

echo ""module Foo where"" > Foo.hs
ghc -no-hs-main -optl -bundle -fPIC -o Foo.bundle Foo.hs
ld: /opt/local/lib/ghc-6.6/libHSbase.a(.o::Pack(void)) has local relocation entries in non-writable section"	bug	closed	normal	6.8.2	Build System	6.6	duplicate			MacOS X	powerpc		Unknown				
