From owner-svn-doc-all@FreeBSD.ORG Thu Feb 14 14:35:55 2013 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6890AF33; Thu, 14 Feb 2013 14:35:55 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4159D874; Thu, 14 Feb 2013 14:35:55 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1EEZsDP042559; Thu, 14 Feb 2013 14:35:54 GMT (envelope-from gahr@svn.freebsd.org) Received: (from gahr@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1EEZsXu042558; Thu, 14 Feb 2013 14:35:54 GMT (envelope-from gahr@svn.freebsd.org) Message-Id: <201302141435.r1EEZsXu042558@svn.freebsd.org> From: Pietro Cerutti Date: Thu, 14 Feb 2013 14:35:54 +0000 (UTC) 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 X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 14:35:55 -0000 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 post-patch: - @${REINPLACE_CMD} -e 's|for Linux|for FreeBSD|g' ${WRKSRC}/README - @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|for Linux|for FreeBSD|g' ${WRKSRC}/README 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 Threading Libraries The threading library must be linked to the binaries using - a special linker flag -pthread on &os;. If + a special flag -pthread on &os;. If a port insists on linking -lpthread - directly, patch it to use - PTHREAD_LIBS variable provided by the ports - framework. This variable usually has the value of - -pthread, but on certain architectures and - &os; versions it can have different values, so do not just - hardcode -pthread into patches and always - use PTHREAD_LIBS. + directly, patch it to use -pthread. If building the port errors out with - unrecognized option '-pthread' when - setting PTHREAD_LIBS, it may be desirable - to use cc as linker by setting - CONFIGURE_ENV to - LD=${CC}. The - -pthread option is not supported by - ld directly. + unrecognized option '-pthread', + it may be desirable to use cc as linker by + setting CONFIGURE_ENV to + LD=${CC}. The + -pthread option is not supported by + ld directly.