Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148325205
D19239.1786308155.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19239.1786308155.diff
View Options
Index: en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml
+++ en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml
@@ -572,11 +572,49 @@
and
<varname>NOT_FOR_ARCHS_REASON_<replaceable>ARCH</replaceable></varname>.</para>
</listitem>
+
+ <listitem>
+ <para>Futher shorthands are available (cf.
+ <link xlink:href="https://svnweb.freebsd.org/ports/head/Mk/bsd.port.mk?view=markup">bsd.port.mk</link>):</para>
+
+ <programlisting>IGNORE_i386= does not run on 32-bit architectures</programlisting>
+
+ <programlisting>BROKEN_powerpc64= not ported to powerpc64 yet</programlisting>
+ </listitem>
</itemizedlist>
</sect2>
+ <sect2 xml:id="dads-wordsize">
+ <title>Wordsize Considerations</title>
+ <itemizedlist>
+ <listitem>
+ <para>Some ports are affected by wordize differences
+ between the various architectures.</para>
+
+ <para>Here are some examples of usage:</para>
+
+ <programlisting># modify CXXFLAGS on 32-bit archs
+.if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == mips || ${ARCH} == powerpc || ${ARCH} == powerpcspe
+CXXFLAGS+= ...
+.endif</programlisting>
+
+ <programlisting># modify LDFLAGS on 64-bit archs
+.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == mips64 || ${ARCH} == powerpc64 || ${ARCH} == sparc64 || ${ARCH} == riscv64
+LDFLAGS+= ...
+.endif</programlisting>
+
+ <para>The latter may be done more succinctly and robustly as:</para>
+
+ <programlisting>.if ${ARCH:M*64*}</programlisting>
+
+ </listitem>
+ </itemizedlist>
+
+ </sect2>
+
<sect2 xml:id="dads-arch-i386">
+ <title>i386-Specific Considerations</title>
<itemizedlist>
<listitem>
<para>If a port fetches i386 binaries and installs them,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 9, 8:42 PM (13 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29380640
Default Alt Text
D19239.1786308155.diff (1 KB)
Attached To
Mode
D19239: porters handbook: add wordsize information to architecture section
Attached
Detach File
Event Timeline
Log In to Comment