diff options
author | wollman <wollman@FreeBSD.org> | 1994-08-26 18:58:10 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-08-26 18:58:10 +0000 |
commit | 927d2e785354cccb56a0258bac5fefa740495543 (patch) | |
tree | e0831b2c98430a3c4f8d5c0f728a78d6cbbde457 /share/mk/bsd.lib.mk | |
parent | 411b82456bfea2b958bfc6b27d1669bbc1e020af (diff) | |
download | FreeBSD-src-927d2e785354cccb56a0258bac5fefa740495543.zip FreeBSD-src-927d2e785354cccb56a0258bac5fefa740495543.tar.gz |
Add support for two modifier variables which will be useful soon:
PRECIOUSLIB causes the shared library to be installed with the system
immutable flag (schg) set. (You can add other flags for shared-library
installation by modifying SHLINSTALLFLAGS.)
INTERNALLIB disables the generation of non-shared versions of the library.
This may be of use for programs like Taylor UUCP and GCC which have large
internal libraries shared among a number of programs.
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r-- | share/mk/bsd.lib.mk | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 06f3325..09fa354 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 -# $Id: bsd.lib.mk,v 1.3 1994/08/08 15:45:55 wollman Exp $ +# $Id: bsd.lib.mk,v 1.4 1994/08/10 02:48:07 wollman Exp $ # .if exists(${.CURDIR}/../Makefile.inc) @@ -112,11 +112,13 @@ BINMODE?= 555 @${LD} -X -r ${.TARGET} @mv a.out ${.TARGET} +.if !defined(INTERNALLIB) .if !defined(NOPROFILE) _LIBS=lib${LIB}.a lib${LIB}_p.a .else _LIBS=lib${LIB}.a .endif +.endif .if !defined(NOPIC) .if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR) @@ -205,7 +207,12 @@ afterdepend: beforeinstall: .endif +.if defined(PRECIOUSLIB) +SHLINSTALLFLAGS+= -fschg +.endif + realinstall: beforeinstall +.if !defined(INTERNALLIB) ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} ${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}.a @@ -214,10 +221,12 @@ realinstall: beforeinstall ${INSTALLFLAGS} lib${LIB}_p.a ${DESTDIR}${LIBDIR} ${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}_p.a .endif +.endif .if !defined(NOPIC) .if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR) ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ - ${INSTALLFLAGS} lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ + ${INSTALLFLAGS} ${SHLINSTALLFLAGS} \ + lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ ${DESTDIR}${LIBDIR} .endif .if defined(INSTALL_PIC_ARCHIVE) |