PERFORCE change 29897 for review

David E. O'Brien obrien at FreeBSD.org
Sun Apr 27 14:44:11 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=29897

Change 29897 by obrien at obrien_trang on 2003/04/27 14:43:33

	Add NOSHLIBS.
	If one is using NOSHARED, why build the libs.

Affected files ...

.. //depot/projects/hammer/share/mk/bsd.lib.mk#3 edit

Differences ...

==== //depot/projects/hammer/share/mk/bsd.lib.mk#3 (text+ko) ====

@@ -175,6 +175,7 @@
 	${RANLIB} ${.TARGET}
 .endif
 
+.if !defined(NOSHLIBS)
 .if defined(SHLIB_NAME) || \
     defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB)
 SOBJS+=		${OBJS:.o=.So}
@@ -182,6 +183,7 @@
 
 .if defined(SHLIB_NAME)
 _LIBS+=		${SHLIB_NAME}
+.endif
 
 ${SHLIB_NAME}: ${SOBJS}
 	@${ECHO} building shared library ${SHLIB_NAME}
@@ -261,7 +263,7 @@
 	${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
 	    ${_INSTALLFLAGS} lib${LIB}_p.a ${DESTDIR}${LIBDIR}
 .endif
-.if defined(SHLIB_NAME)
+.if !defined(NOSHLIBS) && defined(SHLIB_NAME)
 	${INSTALL} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
 	    ${_INSTALLFLAGS} ${_SHLINSTALLFLAGS} \
 	    ${SHLIB_NAME} ${DESTDIR}${SHLIBDIR}


More information about the p4-projects mailing list