Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 2014 22:12:27 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r274989 - in head: share/mk usr.bin/mandoc
Message-ID:  <201411242212.sAOMCRRK023344@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Nov 24 22:12:27 2014
New Revision: 274989
URL: https://svnweb.freebsd.org/changeset/base/274989

Log:
  Convert mandoc to LIBADD
  
  While here remove the ugly LDMANDOC

Modified:
  head/share/mk/src.libnames.mk
  head/usr.bin/mandoc/Makefile

Modified: head/share/mk/src.libnames.mk
==============================================================================
--- head/share/mk/src.libnames.mk	Mon Nov 24 21:51:43 2014	(r274988)
+++ head/share/mk/src.libnames.mk	Mon Nov 24 22:12:27 2014	(r274989)
@@ -21,7 +21,7 @@ _PRIVATELIBS=	\
 		ucl \
 		unbound
 _INTERNALIBS=	\
-		libmandoc \
+		mandoc \
 		ohash \
 		readline \
 		sm
@@ -237,7 +237,6 @@ LDSQLITE3?=	${LIBSQLITE3DIR}/libsqlite3.
 LIBSQLITE3?=	${LIBSQLITE3DIR}/libsqlite3.a
 
 LIBMANDOCDIR=	${ROOTOBJDIR}/lib/libmandoc
-LDMANDOC?=	${LIBMANDOCDIR}/libmandoc.a
 LIBMANDOC?=	${LIBMANDOCDIR}/libmandoc.a
 
 LIBSMDIR=	${ROOTOBJDIR}/lib/libsm

Modified: head/usr.bin/mandoc/Makefile
==============================================================================
--- head/usr.bin/mandoc/Makefile	Mon Nov 24 21:51:43 2014	(r274988)
+++ head/usr.bin/mandoc/Makefile	Mon Nov 24 22:12:27 2014	(r274989)
@@ -1,7 +1,6 @@
 # $FreeBSD$
 
 MDOCMLDIR=	${.CURDIR}/../../contrib/mdocml
-LIBMANDOC=	${.OBJDIR}/../../lib/libmandoc/libmandoc.a
 .PATH: ${MDOCMLDIR}
 
 PROG=	mandoc
@@ -33,7 +32,6 @@ SRCS=		${HTML_SRCS} \
 
 WARNS?=	3
 CFLAGS+= -DHAVE_CONFIG_H
-DPADD=	${LIBMANDOC}
-LDADD=	${LIBMANDOC}
+LIBADD=	mandoc
 
 .include <bsd.prog.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411242212.sAOMCRRK023344>