summaryrefslogtreecommitdiff
path: root/gnu/lib/libbfd
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2003-04-09 22:33:26 +0000
committerthorpej <thorpej@NetBSD.org>2003-04-09 22:33:26 +0000
commita63a02e3b9c7cd63ca4a68ab223d36e2d82af058 (patch)
treef92909318698b7e09846c9764d46ea35be19a5d1 /gnu/lib/libbfd
parentc4dba16f3470d08956926435c6acd42b16281e6c (diff)
If MKPIC is "no", then we need to provide *something* for BFD-using
programs to link against, so reset MKLINKLIB to "yes" in that case.
Diffstat (limited to 'gnu/lib/libbfd')
-rw-r--r--gnu/lib/libbfd/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/lib/libbfd/Makefile b/gnu/lib/libbfd/Makefile
index 0ed35fac123..0856fd3ea1c 100644
--- a/gnu/lib/libbfd/Makefile
+++ b/gnu/lib/libbfd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2003/03/01 13:08:42 mrg Exp $
+# $NetBSD: Makefile,v 1.33 2003/04/09 22:33:26 thorpej Exp $
NOLINKLIB= # defined
NOLINT= # defined
@@ -7,6 +7,12 @@ NOPROFILE= # defined
.include <bsd.own.mk>
+# If the platform does not support shared libraries, we need to supply
+# *something* for BFD-using programs to link against.
+.if ${MKPIC} == "no"
+MKLINKLIB= yes
+.endif
+
LIB= bfd
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk)