Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 11/25/2004 21:33:37
Module Name:	pkgsrc
Committed By:	jlam
Date:		Thu Nov 25 21:33:37 UTC 2004

Modified Files:
	pkgsrc/mk: bsd.pkg.mk
Added Files:
	pkgsrc/mk: dlopen.buildlink3.mk

Log Message:
dlopen.buildlink3.mk should be added to packages that use dlopen() to
load shared objects.  Some platforms require pthreads to be linked
into the application if it uses dlopen() or else the applications will
core dump when they dlopen a shared module that _is_ linked with
pthread support.  Including dlopen.buildlink3.mk in a package Makefile
will cause pthread.buildlink3.mk to also be included.

It is up to the package to ensure that PTHREAD_{CFLAGS,LDFLAGS,LIBS}
(defined by pthread.buildlink3.mk) are passed to the compiler when
building/linking the applications, possibly by setting PTHREAD_AUTO_VARS
to "yes" in the package Makefile.


To generate a diff of this commit:
cvs rdiff -r1.1540 -r1.1541 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -r0 -r1.1 pkgsrc/mk/dlopen.buildlink3.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.