svn commit: r274985 - head/share/mk
Baptiste Daroussin
bapt at FreeBSD.org
Mon Nov 24 21:39:29 UTC 2014
Author: bapt
Date: Mon Nov 24 21:39:28 2014
New Revision: 274985
URL: https://svnweb.freebsd.org/changeset/base/274985
Log:
Correctly specify -L for internal and private libs
Modified:
head/share/mk/src.libnames.mk
Modified: head/share/mk/src.libnames.mk
==============================================================================
--- head/share/mk/src.libnames.mk Mon Nov 24 21:31:08 2014 (r274984)
+++ head/share/mk/src.libnames.mk Mon Nov 24 21:39:28 2014 (r274985)
@@ -157,13 +157,13 @@ LDADD_supcplusplus= -lsupc++
.for _l in ${_LIBRARIES}
.if ${_PRIVATELIBS:M${_l}}
-LDADD+= -L${LIB${_l:tu}DIR}
+LDADD_${_l}_L+= -L${LIB${_l:tu}DIR}
.endif
.if ${_INTERNALIBS:M${_l}}
-LDADD+= -L${LIB${_l:tu}DIR}
+LDADD_${_l}_L+= -L${LIB${_l:tu}DIR}
.endif
DPADD_${_l}?= ${LIB${_l:tu}}
-LDADD_${_l}?= -l${_l}
+LDADD_${_l}?= ${LDADD_${_l}_L} -l${_l}
.if defined(${_l}_depend) && defined(NO_SHARED)
.for _d in ${_DP_${_l}}
DPADD_${_l}+= ${DPADD_${_d}}
More information about the svn-src-all
mailing list