Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2019 20:52:19 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r53382 - head/en_US.ISO8859-1/books/porters-handbook/porting-dads
Message-ID:  <201909072052.x87KqJIi076436@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Sep  7 20:52:18 2019
New Revision: 53382
URL: https://svnweb.freebsd.org/changeset/doc/53382

Log:
  Add a new section "Cluster-Specific Considerations" to discourage
  the use of -march=native by default.
  
  Approved by:		mat
  Differential Revision:	D20885

Modified:
  head/en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml

Modified: head/en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml	Fri Sep  6 16:23:42 2019	(r53381)
+++ head/en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml	Sat Sep  7 20:52:18 2019	(r53382)
@@ -569,6 +569,24 @@ cc -o someprogram source1.o source2.o -L/usr/local/lib
 	</listitem>
       </itemizedlist>
     </sect2>
+
+    <sect2 xml:id="dads-arch-cluster">
+      <title>Cluster-Specific Considerations</title>
+
+      <itemizedlist>
+	<listitem>
+	  <para>Some ports attempt to tune themselves to the
+	    exact machine they are being built on by specifying
+	    <literal>-march=native</literal> to the compiler.
+	    This should be avoided: either list it under an
+	    off-by-default option, or delete it entirely.</para>
+
+	  <para> Otherwise, the default package produced by the
+	    build cluster might not run on every single machine
+ 	    of that <varname>ARCH</varname>.</para>
+	</listitem>
+      </itemizedlist>
+    </sect2>
   </sect1>
 
   <sect1 xml:id="dads-deprecated">



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909072052.x87KqJIi076436>