NetBSD/share/mk
lukem 58d2d9a196 Set _LIBLDOPTS to set -Wl,-rpath-link -R -L appropriately based
on the setting of ${SHLIBDIR} and ${SHLIBINSTALLDIR} (_not_ ${_LIBSODIR}).

Fixes cruel and unusual ^W^W^W obscure native-build and not-so-obscure
cross-builds problems I was having with shared libraries with a
non-base LIBDIR (e.g, /usr/X11R6/lib) that use LDADD to pull in other
libraries from /usr/lib (such as libm) which are really in /lib and the
symlink from ${DESTDIR}/usr/lib/libm.so to /lib/libm.so.N.M was confusing
the linker.  Stuffing -rpath-link ${DESTDIR}/lib in solves the problem.

This should mean that shared libraries that depend upon other shared
libraries in other directories should DTRT in a DESTDIR (cross-)build...

Inspired by _PROGLDOPTS in <bsd.prog.mk>
2003-09-30 07:24:23 +00:00
..
bsd.dep.mk order .SUFFIXES similar to other *.mk files 2003-08-11 09:59:43 +00:00
bsd.doc.mk Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined. 2003-07-18 08:26:01 +00:00
bsd.endian.mk Ensure the first word of ${CC} exists before attempting to invoke ${CC} 2003-07-27 11:16:30 +00:00
bsd.files.mk Change LNFILES' to BUILDSYMLINKS', to more accurately describe its purpose. 2003-09-20 06:20:41 +00:00
bsd.gcc.mk provide a variable pointing to the directory where 2003-06-27 17:13:27 +00:00
bsd.hostlib.mk Rework how dependency generation is performed: 2003-08-01 17:03:41 +00:00
bsd.hostprog.mk Rework how dependency generation is performed: 2003-08-01 17:03:41 +00:00
bsd.inc.mk Add INCSYMLINKS to <bsd.inc.mk> and <bsd.kinc.mk>, and use that instead of 2003-08-03 09:23:14 +00:00
bsd.info.mk be consistent about using ${.TARGET} for $@ and ${.IMPSRC} for $< 2003-07-27 09:27:18 +00:00
bsd.init.mk Be consistent how "multiple include protection" is implemented. I.e, 2003-07-28 02:38:33 +00:00
bsd.kernobj.mk whitespace cleanup 2003-07-18 04:04:03 +00:00
bsd.kinc.mk Add INCSYMLINKS to <bsd.inc.mk> and <bsd.kinc.mk>, and use that instead of 2003-08-03 09:23:14 +00:00
bsd.kmod.mk revert previous; there's too much hairy crap in sys/lkm/compat involving 2003-09-04 08:27:08 +00:00
bsd.lib.mk Set _LIBLDOPTS to set -Wl,-rpath-link -R -L appropriately based 2003-09-30 07:24:23 +00:00
bsd.links.mk pull in <bsd.sys.mk> for TOOL_* incase this is used with USETOOLS=never 2003-07-28 01:00:52 +00:00
bsd.man.mk pull in <bsd.files.mk> incase LNFILES is used by <bsd.man.mk> user. 2003-09-03 05:40:12 +00:00
bsd.nls.mk Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined. 2003-07-18 08:26:01 +00:00
bsd.obj.mk Be consistent how "multiple include protection" is implemented. I.e, 2003-07-28 02:38:33 +00:00
bsd.own.mk List VAX as non-GCC3. 2003-09-27 04:27:32 +00:00
bsd.prog.mk Add LIBSTDCXX (for usr/lib/libstdc++.a). 2003-09-29 01:06:37 +00:00
bsd.README Add LIBSTDCXX (for usr/lib/libstdc++.a). 2003-09-29 01:06:37 +00:00
bsd.rpc.mk just add various files to ${DPSRCS} instead of trying to get 2003-07-29 02:42:49 +00:00
bsd.shlib.mk Be consistent how "multiple include protection" is implemented. I.e, 2003-07-28 02:38:33 +00:00
bsd.subdir.mk
bsd.sys.mk Disable -Wtraditional and explain why. 2003-08-22 18:07:21 +00:00
bsd.x11.mk in cleanx11man, support "MAN defaults to ${PROG}.1" 2003-09-13 20:39:45 +00:00
Makefile <bsd.x11.mk>: infrastructure to support reach-over builds of xsrc 2003-09-12 07:40:34 +00:00
sys.mk Drop explicit medlow model and default to -O2 for sparc64. 2003-09-19 16:32:10 +00:00