Make it easier build binaries against the host's libs, e.g.
libpthread which might be in /lib/x86_64-linux-gnu/libpthread.so.0 or some other unholy place.
This commit is contained in:
parent
880c7720a7
commit
813e9ae68d
@ -1,4 +1,4 @@
|
||||
# $NetBSD: bsd.README,v 1.306 2012/11/04 16:27:28 christos Exp $
|
||||
# $NetBSD: bsd.README,v 1.307 2012/11/13 22:30:38 pooka Exp $
|
||||
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
|
||||
|
||||
This is the README file for the make "include" files for the NetBSD
|
||||
@ -1165,6 +1165,11 @@ LIBDPLIBS A list of the tuples:
|
||||
* DPADD gets ${LIBDO.libname}/liblibname.so or
|
||||
${LIBDO.libname}/liblibname.a added.
|
||||
|
||||
The special value "_external" for LIBDO.lib makes the
|
||||
build system to assume the library comes from outside
|
||||
of the NetBSD source tree and only causes -llibname
|
||||
to be added to LDADD.
|
||||
|
||||
This variable may be used for individual libraries, as
|
||||
well as in parent directories to cache common libraries
|
||||
as a build-time optimization.
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: bsd.lib.mk,v 1.324 2012/08/23 21:21:16 joerg Exp $
|
||||
# $NetBSD: bsd.lib.mk,v 1.325 2012/11/13 22:30:38 pooka Exp $
|
||||
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
|
||||
|
||||
.include <bsd.init.mk>
|
||||
@ -54,8 +54,12 @@ AFLAGS+= ${PIE_AFLAGS}
|
||||
LIBDO.${_lib}!= cd "${_dir}" && ${PRINTOBJDIR}
|
||||
.MAKEOVERRIDES+=LIBDO.${_lib}
|
||||
.endif
|
||||
.if ${LIBDO.${_lib}} == "_external"
|
||||
LDADD+= -l${_lib}
|
||||
.else
|
||||
LDADD+= -L${LIBDO.${_lib}} -l${_lib}
|
||||
DPADD+= ${LIBDO.${_lib}}/lib${_lib}.so
|
||||
.endif
|
||||
.endfor
|
||||
.endif # }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user