This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add --enable-host-shared configuration option


On Thu, 2013-10-10 at 01:05 +0000, Joseph S. Myers wrote:
> On Wed, 9 Oct 2013, David Malcolm wrote:
> 
> > This patch adds an "--enable-host-shared" option throughout the various
> > configure/Make machinery for host code, adding "-fPIC" where appropriate
> > when enabled.
> 
> Please document this in install.texi (even if it isn't particularly useful 
> at the stage where it just means PIC rather than actual shared libraries).

How does the following look:

gcc/
	* doc/install.texi (--enable-shared): Add note contrasting it
	with...
	(--enable-host-shared): ...new option.

commit 23bf2a4389817352bca1bdcbe3d7971b4f607e4b
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Fri Oct 11 16:22:45 2013 -0400

    Document --enable-host-shared
    
    gcc/
    	* doc/install.texi (--enable-shared): Add note contrasting it
    	with...
    	(--enable-host-shared): New option.

diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index 7be8e5a..5cb4d3c 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -925,6 +925,19 @@ Use @option{--disable-shared} to build only static libraries.  Note that
 @option{--disable-shared} does not accept a list of package names as
 argument, only @option{--enable-shared} does.
 
+Contrast with @option{--enable-host-shared}, which affects @emph{host}
+code.
+
+@item --enable-host-shared
+Specify that the @emph{host} code should be built into position-independent
+machine code (with -fPIC), allowing it to be used within shared libraries,
+but yielding a slightly slower compiler.
+
+Currently this option is only of use to people developing GCC itself.
+
+Contrast with @option{--enable-shared}, which affects @emph{target}
+libraries.
+
 @item @anchor{with-gnu-as}--with-gnu-as
 Specify that the compiler should assume that the
 assembler it finds is the GNU assembler.  However, this does not modify

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]