Follow-up r291739: Don't suggest LDADD on private libs to use LIBADD.
This is because LDADD+=-lFOO is not the same as LDADD+=-lprivateFOO which is what the private libs in LIBADD are. Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
fea0add70e
commit
de7420309f
@ -348,8 +348,9 @@ DPADD_atf_cxx+= ${DPADD_atf_c}
|
||||
LDADD_atf_cxx+= ${LDADD_atf_c}
|
||||
|
||||
# Detect LDADD/DPADD that should be LIBADD, before modifying LDADD here.
|
||||
_BADLDADD=
|
||||
.for _l in ${LDADD:M-l*:N-l*/*:C,^-l,,}
|
||||
.if ${_LIBRARIES:M${_l}}
|
||||
.if ${_LIBRARIES:M${_l}} && !${_PRIVATELIBS:M${_l}}
|
||||
_BADLDADD+= ${_l}
|
||||
.endif
|
||||
.endfor
|
||||
|
Loading…
Reference in New Issue
Block a user