Modernize the 12.11 Threading Libraries section of the PH
Approved by: bcr (mentor)
This commit is contained in:
parent
dbd558b55d
commit
afd9569330
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40394
1 changed files with 3 additions and 3 deletions
|
@ -16140,8 +16140,8 @@ exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/foo.jar "$@"</programlisting>
|
|||
|
||||
<para>The threading library must be linked to the binaries using
|
||||
a special linker flag <literal>-pthread</literal> on &os;. If
|
||||
a port insists on linking <literal>-lpthread</literal> or
|
||||
<literal>-lc_r</literal> directly, patch it to use
|
||||
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
|
||||
|
@ -16153,7 +16153,7 @@ exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/foo.jar "$@"</programlisting>
|
|||
<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>gcc</command> as linker by setting
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue