tech-pkg: Re: CFR: Guile dl_open(3)'ing libpthread.so fix

Subject: Re: CFR: Guile dl_open(3)'ing libpthread.so fix
To: Masao Uebayashi <uebayasi@pultek.co.jp>
From: Johnny Lam <jlam@jgrind.org>
List: tech-pkg
Date: 05/25/2003 12:05:47
On Sat, May 24, 2003 at 05:09:00PM +0900, Masao Uebayashi wrote:
> @@ -23,6 +23,13 @@
> USE_GNU_READLINE=	YES
> 
> INFO_FILES=		guile.info
> +
> +# Link the native thread so that Guile processes won't die when libpthread.so
> +# is dl_open(3)'ed.
> +.include "../../mk/pthread.buildlink2.mk"
> +.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "native")
> +CFLAGS+=		-pthread
> +.endif
I've committed a change to pthread.buildlink2.mk so that users can expect
PTHREAD_CFLAGS to be defined appropriately, where PTHREAD_CFLAGS contains
any compiler options needed to compile/link pthreaded code. You can
change your patch to just do:
	CFLAGS+=	${PTHREAD_CFLAGS}
and it should Just Work. Let me know if it doesn't.
	Cheers,
	-- Johnny Lam <jlam@jgrind.org>

AltStyle によって変換されたページ (->オリジナル) /