Subject: Switching lib/csu/c++/c++rt0.c to -fPIC
To: None <>
From: David Brownlee <>
List: tech-userlevel
Date: 12/07/1999 10:20:46
	Currently c++rt0.o is compiled -fpic. On many systems this is
	identical to -fPIC, but on sparc it results in code that is
	incapable of working with large binaries (such as KDE)

	For reference the gcc manpage states:

       -fpic  If supported for the target machines, generate  po-
              sition-independent  code,  suitable  for  use  in a
              shared library.

       -fPIC  If supported for the target machine, emit position-
              independent  code,  suitable  for  dynamic linking,
              even if branches need large displacements.

	Can we either:
		a) Compile two versions of c++rt0.c, one -fpic, the other
		   -fPIC, default being -fPIC?
		b) Lose -fpic altogether and use -fPIC.

	I'd prefer to do option a), since it then allows someone who wants
	to use -fpic for performance reasons to do so, albeit with more