Change LDFLAGS to LDADD in order to allow static builds. This is more

proper way to ensure that the command line compile works the way we intend.

Add explicity DPADD statemens on LIBMD and LIBPTHREAD depending on which
options are used in the build.

Reviewed by:	andrew
MFC after:	2 weeks
This commit is contained in:
Sean Bruno 2014-11-15 18:03:38 +00:00
parent 45db088be1
commit e4684c7895
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274552

View File

@ -13,10 +13,12 @@ CLEANFILES+= sort.1
.if ${MK_SORT_THREADS} != "no"
CFLAGS+= -DSORT_THREADS
LDFLAGS+= -lpthread -lmd
LDADD= -lpthread -lmd
DPADD= ${LIBPTHREAD} ${LIBMD}
MAN_SUB+= -e 's|%%THREADS%%||g'
.else
LDFLAGS+= -lmd
LDADD= -lmd
DPADD= ${LIBMD}
MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g'
.endif