Commit graph

9 commits

Author SHA1 Message Date
minskim
af252c5f04 Darwin>=7.0 does not need devel/dlcompat. 2005-06-26 13:11:22 +00:00
jlam
f96609e939 Check that USE_BUILTIN.dl is "yes", not that it's just defined. 2004-11-26 09:32:06 +00:00
jlam
825f6216b4 Split dlopen.buildlink3.mk into two files: dlopen.buildlink3.mk, which
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-26 07:05:19 +00:00
jlam
67e7448da0 Fix the "MACHINE_PLATFORM" patterns by appending "-*". 2004-11-26 01:58:47 +00:00
jlam
a3af230352 Define DL_{CFLAGS,LDFLAGS,LIBS} as compiler/linker flags for building
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-26 01:56:17 +00:00
jlam
f551f31daf Missing a make variable modifier. 2004-11-26 01:40:42 +00:00
jlam
cf6bd5fad8 Don't recursively define _DLOPEN_REQUIRE_PTHREADS. 2004-11-25 22:18:34 +00:00
jlam
3c17831da9 Only include pthreads if we prefer native pthreads. This allows building
pkgsrc without any pthreads if we don't want to.
2004-11-25 21:43:19 +00:00
jlam
2e5e6fbf72 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.
2004-11-25 21:33:36 +00:00