Date: Thu, 14 Feb 2013 14:35:54 +0000 (UTC) From: Pietro Cerutti <gahr@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r40970 - head/en_US.ISO8859-1/books/porters-handbook Message-ID: <201302141435.r1EEZsXu042558@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gahr (ports committer) Date: Thu Feb 14 14:35:54 2013 New Revision: 40970 URL: http://svnweb.freebsd.org/changeset/doc/40970 Log: - Modify the 12.11 Threading Libraries chapter to reflect the recent dismission of PTHREAD_CFLAGS and PTHREAD_LIBS Reviewed by: eadler, bcr Approved by: bcr Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml (contents, props changed) Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/book.xml Thu Feb 14 14:20:37 2013 (r40969) +++ head/en_US.ISO8859-1/books/porters-handbook/book.xml Thu Feb 14 14:35:54 2013 (r40970) @@ -787,8 +787,7 @@ PLIST_DIRS= lib/X11/oneko</programlistin variable value. Example:</para> <programlisting>post-patch: - @${REINPLACE_CMD} -e 's|for Linux|for FreeBSD|g' ${WRKSRC}/README - @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure</programlisting> + @${REINPLACE_CMD} -e 's|for Linux|for FreeBSD|g' ${WRKSRC}/README</programlisting> <para>Quite often, there is a situation when the software being ported, especially if it is primarily developed on &windows;, @@ -16171,25 +16170,18 @@ exec %%LOCALBASE%%/bin/java -jar %%DATAD <title>Threading Libraries</title> <para>The threading library must be linked to the binaries using - a special linker flag <literal>-pthread</literal> on &os;. If + a special flag <literal>-pthread</literal> on &os;. If a port insists on linking <literal>-lpthread</literal> - directly, patch it to use - <makevar>PTHREAD_LIBS</makevar> variable provided by the ports - framework. This variable usually has the value of - <literal>-pthread</literal>, but on certain architectures and - &os; versions it can have different values, so do not just - hardcode <literal>-pthread</literal> into patches and always - use <makevar>PTHREAD_LIBS</makevar>.</para> + directly, patch it to use <literal>-pthread</literal>.</para> <note> <para>If building the port errors out with - <literal>unrecognized option '-pthread'</literal> when - setting <makevar>PTHREAD_LIBS</makevar>, it may be desirable - to use <command>cc</command> as linker by setting - <makevar>CONFIGURE_ENV</makevar> to - <literal>LD=${CC}</literal>. The - <literal>-pthread</literal> option is not supported by - <command>ld</command> directly.</para> + <literal>unrecognized option '-pthread'</literal>, + it may be desirable to use <command>cc</command> as linker by + setting <makevar>CONFIGURE_ENV</makevar> to + <literal>LD=${CC}</literal>. The + <literal>-pthread</literal> option is not supported by + <command>ld</command> directly.</para> </note> </sect1>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302141435.r1EEZsXu042558>