Commit graph

10 commits

Author SHA1 Message Date
jlam
e4efb0343f Also match NetBSD security releases, e.g. 2.0.1, when deciding whether
using dlopen() implies linking against libpthread.  Idea for fix from
PR pkg/29022 and probably also fixes PR pkg/28800.
2005-01-20 15:22:39 +00:00
minskim
1d36b321d6 Make IS_BUILTIN.dl work on Interix. Patch provided by Hiramatsu Yoshifumi
in PR pkg/28836.
2005-01-03 04:57:51 +00:00
jlam
1a36b3b670 Don't remove library options from the command line quite so aggressively.
Allow the configure process a chance to detect on its own whether the
named library exists or not by allowing those library options to pass
through to the compiler on a test compile.  A package that *needs*
those library options to be removed can add the appropriate rm:
BUILDLINK_TRANSFORM command to its package Makefile.
2004-12-23 14:27:04 +00:00
jlam
6c02e9e0aa If we're using the builtin dlopen(), and libdl.* doesn't exist, then
drop the "-ldl" option on the floor.  This "fixes" packages that
hardcode "-ldl" into the command line when linking software.
2004-12-02 15:04:16 +00:00
jlam
9636b9d697 Reverse the tests so that we actually check for the existence and not
the non-existence of the library -- this more accurately reflects what
we want to say.
2004-11-28 05:44:34 +00:00
jlam
172a3cdee1 Match NetBSD-2.x_RCn as well as NetBSD-2.x. 2004-11-26 21:04:46 +00:00
jlam
061ff7543b Move the section that defines DLOPEN_REQUIRE_PTHREAD outside of the
CHECK_BUILTIN.dl-protected section so that it's value can be usd after
dlopen.buildlink3.mk is included.  This should fix PR pkg/28422.
2004-11-26 17:42:42 +00:00
jlam
bdbcf6f038 Don't auto-add -ldl to LIBS since most GNU configure scripts already
check for this condition.
2004-11-26 08:26:51 +00:00
jlam
b47bc866c0 Move all dlopen-handling code into dlopen.{builtin,buildlink3}.mk. 2004-11-26 08:15:25 +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