r1597 - in trunk/BOOK: chapter01 chapter05 chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Sat Nov 20 19:57:24 PST 2010


Author: robert
Date: 2010-11-20 20:57:20 -0700 (Sat, 20 Nov 2010)
New Revision: 1597

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/perl.xml
   trunk/BOOK/chapter06/perl.xml
Log:
Replace -fstack-protector with -fstack-protector-all when building Perl.

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2010-11-21 03:31:20 UTC (rev 1596)
+++ trunk/BOOK/chapter01/changelog.xml	2010-11-21 03:57:20 UTC (rev 1597)
@@ -41,6 +41,17 @@
       <para>2010-11-20</para>
       <itemizedlist>
         <listitem>
+          <para>[robert] - Replace -fstack-protector with -fstack-protector-all
+          when building Perl.
+          </para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
+      <para>2010-11-20</para>
+      <itemizedlist>
+        <listitem>
           <para>[robert] - Build Patch with -no-fatal-warnings. The Patch
           developers rejected the old mkstemp patch, and it alters the behavior
           of Patch enough to break the test suite. The developers also consider

Modified: trunk/BOOK/chapter05/perl.xml
===================================================================
--- trunk/BOOK/chapter05/perl.xml	2010-11-21 03:31:20 UTC (rev 1596)
+++ trunk/BOOK/chapter05/perl.xml	2010-11-21 03:57:20 UTC (rev 1597)
@@ -48,6 +48,13 @@
 
 <screen><userinput remap="pre">patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
 
+    <para>Perl builds with <option>-fstack-protector</option> by default. The
+    following command replaces this option with <option>-fstack-protector-all</option>
+    so that all functions are protected:</para>
+
+<screen><userinput remap="pre">mv -v Configure{,.orig}
+sed 's/-fstack-protector/&-all/' Configure.orig > Configure</userinput></screen>
+
     <!-- <para>Fix an incompatibility with gcc-&gcc-version;:</para>
 
 <screen><userinput remap="pre">mv -v makedepend.SH{,.orig}

Modified: trunk/BOOK/chapter06/perl.xml
===================================================================
--- trunk/BOOK/chapter06/perl.xml	2010-11-21 03:31:20 UTC (rev 1596)
+++ trunk/BOOK/chapter06/perl.xml	2010-11-21 03:57:20 UTC (rev 1597)
@@ -47,6 +47,11 @@
 
 <screen><userinput remap="pre">echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen>
 
+    <para>Replace <option>-fstack-protector</option> with
+    <option>-fstack-protector-all</option>:</para>
+
+<screen><userinput remap="pre">sed -i 's/-fstack-protector/&-all/' Configure</userinput></screen>
+
     <para>This version of Perl now builds the Compress::Raw::Zlib module. By
     default Perl will use an internal copy of the Zlib source for the build.
     Issue the following command so that Perl will use the Zlib library




More information about the hlfs-book mailing list