Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jul 2007 15:12:02 +0200
From:      Pav Lucistnik <pav@FreeBSD.org>
To:        chinsan <chinsan.tw@gmail.com>
Cc:        doc-committers@FreeBSD.org, cvs-doc@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: doc/en_US.ISO8859-1/books/porters-handbook book.sgml
Message-ID:  <1184937122.13381.34.camel@pav.hide.vol.cz>
In-Reply-To: <1f27304c0707200606s32541002g488f2f1a92ff8f21@mail.gmail.com>
References:  <200707201246.l6KCkC8M062760@repoman.freebsd.org> <1184936122.13381.28.camel@pav.hide.vol.cz> <1f27304c0707200606s32541002g488f2f1a92ff8f21@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-5xEX8GZqWo6QyVE7YUnU
Content-Type: text/plain; charset=ISO8859-2
Content-Transfer-Encoding: quoted-printable

chinsan p=ED=B9e v p=E1 20. 07. 2007 v 21:06 +0800:

> The Original:
>      @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/configu=
re
> The patched:
>      @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/config=
ure
>=20
> Since "PTHREAD_LIBS?=3D -pthread", so why we should replace it again?
> Therefore, it was guessed as a typo of "-lpthread" instead of "-pthread".
> Because PTHREAD_LIBS =3D -pthread. :)
>=20
> The following text is just a quote
> "If a port insists on linking -lpthread or -lc_r directly, patch it to us=
e
>  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.

--=20
Pav Lucistnik <pav@oook.cz>
              <pav@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

--=-5xEX8GZqWo6QyVE7YUnU
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: 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?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQBGoLSintdYP8FOsoIRAlwbAJ0e2VccruiomaJmfMqfGwdIGhaztACfWe5A
r+rDCMF1Dplinn+6hDnRzqM=
=fFKh
-----END PGP SIGNATURE-----

--=-5xEX8GZqWo6QyVE7YUnU--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1184937122.13381.34.camel>