summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2012-05-18 14:15:17 +0000
committerbsiegert <bsiegert@pkgsrc.org>2012-05-18 14:15:17 +0000
commit8cb4d28fbf88cd935a79c36c4fce01249abb3248 (patch)
tree76939785651930977d0f3d8490f2395809bf0546
parentbeb0c6b982de67b8ab69d7cc30cd5ea83069a12c (diff)
downloadpkgsrc-8cb4d28fbf88cd935a79c36c4fce01249abb3248.tar.gz
Add a global BUILDLINK_TRANSFORM to remove -ldl. This library is an empty
static library for compatibility reasons. If a libtool library is linking against -ldl, libtool only builds it statically because there is no libdl.so. This prevented, at least, the build of devel/gobject-introspection. Add it globally because there is no reason anyone would want to link against libdl on MirBSD.
-rw-r--r--mk/platform/MirBSD.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/platform/MirBSD.mk b/mk/platform/MirBSD.mk
index d9a492413ca..ec4d76df427 100644
--- a/mk/platform/MirBSD.mk
+++ b/mk/platform/MirBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: MirBSD.mk,v 1.5 2012/03/19 12:34:18 joerg Exp $
+# $NetBSD: MirBSD.mk,v 1.6 2012/05/18 14:15:17 bsiegert Exp $
#
# Variable definitions for the MirOS BSD operating system.
@@ -41,6 +41,8 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
+BUILDLINK_TRANSFORM+= rm:-ldl # libdl.a is an empty static library
+
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive