summaryrefslogtreecommitdiff
path: root/mk/dlopen.buildlink3.mk
AgeCommit message (Collapse)AuthorFilesLines
2005-06-26Darwin>=7.0 does not need devel/dlcompat.minskim1-2/+2
2004-11-26Check that USE_BUILTIN.dl is "yes", not that it's just defined.jlam1-2/+2
2004-11-26Split dlopen.buildlink3.mk into two files: dlopen.buildlink3.mk, whichjlam1-36/+19
is included by packages that use dlopen(), and dlopen.builtin.mk, which checks for the presence of built-in dl*() functions. On Darwin, including dlopen.buildlink3.mk will cause the devel/dlcompat package to be used if the base system lacks a dlcompat library.
2004-11-26Fix the "MACHINE_PLATFORM" patterns by appending "-*".jlam1-3/+3
2004-11-26Define DL_{CFLAGS,LDFLAGS,LIBS} as compiler/linker flags for buildingjlam1-1/+25
or linking code that uses dl*() functions. Also re-structure a bit to pave the way for a future dlopen.builtin.mk that handles -ldl on some platforms and dlcompat on Darwin.
2004-11-26Missing a make variable modifier.jlam1-2/+2
2004-11-25Don't recursively define _DLOPEN_REQUIRE_PTHREADS.jlam1-2/+2
2004-11-25Only include pthreads if we prefer native pthreads. This allows buildingjlam1-1/+3
pkgsrc without any pthreads if we don't want to.
2004-11-25dlopen.buildlink3.mk should be added to packages that use dlopen() tojlam1-0/+35
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.