cvs commit: doc/en_US.ISO8859-1/books/porters-handbook book.sgml

Pav Lucistnik pav at FreeBSD.org
Fri Jul 20 13:12:05 UTC 2007


chinsan píše v pá 20. 07. 2007 v 21:06 +0800:

> The Original:
>      @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure
> The patched:
>      @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure
> 
> Since "PTHREAD_LIBS?= -pthread", so why we should replace it again?
> Therefore, it was guessed as a typo of "-lpthread" instead of "-pthread".
> Because PTHREAD_LIBS = -pthread. :)
> 
> The following text is just a quote
> "If a port insists on linking -lpthread or -lc_r directly, patch it to use
>  PTHREAD_LIBS variable provided by the ports framework."

People are supposed to patch s|-pthread|${PTHREAD_LIBS}| too, because
PTHREAD_LIBS are not guaranteed to be equal to -pthread forever.

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

What do we know about love? Love is like a pear.  Pear is sweet and have
a specific shape. Try to exactly define the shape of a pear.
  -- Marigold: 50 Years Of Poetry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20070720/f4ce49fd/attachment.pgp


More information about the cvs-all mailing list