This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Handle "-shared -pie" and "-pie -shared" properly
On Tue, Jul 03, 2007 at 03:22:32PM -0700, Eric Christopher wrote:
> >---
> >2007-07-03 H.J. Lu <hongjiu.lu@intel.com>
> >
> > * config/linux.opt: Add shared and pie.
>
> No reason to only put it here...
>
Here is a new patch. OK to install to mainline and 4.2?
H.J.
----
2007-07-03 H.J. Lu <hongjiu.lu@intel.com>
* common.opt: Add shared and pie.
--- gcc/common.opt.pie 2007-07-01 07:23:57.000000000 -0700
+++ gcc/common.opt 2007-07-03 16:18:06.000000000 -0700
@@ -1245,4 +1245,12 @@ w
Common Var(inhibit_warnings)
Suppress warnings
+shared
+Common RejectNegative Negative(pie)
+Create a shared library
+
+pie
+Common RejectNegative Negative(shared)
+Create a position independent executable
+
; This comment is to ensure we retain the blank line above.