bsd.lib.mk (179184) | bsd.lib.mk (195697) |
---|---|
1# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 | 1# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 |
2# $FreeBSD: head/share/mk/bsd.lib.mk 179184 2008-05-22 01:14:43Z jb $ | 2# $FreeBSD: head/share/mk/bsd.lib.mk 195697 2009-07-14 21:19:13Z kan $ |
3# 4 5.include <bsd.init.mk> 6 7# Set up the variables controlling shared libraries. After this section, 8# SHLIB_NAME will be defined only if we are to create a shared library. 9# SHLIB_LINK will be defined only if we are to create a link to it. 10# INSTALL_PIC_ARCHIVE will be defined only if we are to create a PIC archive. --- 184 unchanged lines hidden (view full) --- 195 196${SHLIB_NAME}: ${SOBJS} 197 @${ECHO} building shared library ${SHLIB_NAME} 198 @rm -f ${.TARGET} ${SHLIB_LINK} 199.if defined(SHLIB_LINK) 200 @ln -fs ${.TARGET} ${SHLIB_LINK} 201.endif 202.if !defined(NM) | 3# 4 5.include <bsd.init.mk> 6 7# Set up the variables controlling shared libraries. After this section, 8# SHLIB_NAME will be defined only if we are to create a shared library. 9# SHLIB_LINK will be defined only if we are to create a link to it. 10# INSTALL_PIC_ARCHIVE will be defined only if we are to create a PIC archive. --- 184 unchanged lines hidden (view full) --- 195 196${SHLIB_NAME}: ${SOBJS} 197 @${ECHO} building shared library ${SHLIB_NAME} 198 @rm -f ${.TARGET} ${SHLIB_LINK} 199.if defined(SHLIB_LINK) 200 @ln -fs ${.TARGET} ${SHLIB_LINK} 201.endif 202.if !defined(NM) |
203 @${CC} ${LDFLAGS} -shared -Wl,-x \ | 203 @${CC} ${LDFLAGS} ${SSP_CFLAGS} -shared -Wl,-x \ |
204 -o ${.TARGET} -Wl,-soname,${SONAME} \ 205 `lorder ${SOBJS} | tsort -q` ${LDADD} 206.else | 204 -o ${.TARGET} -Wl,-soname,${SONAME} \ 205 `lorder ${SOBJS} | tsort -q` ${LDADD} 206.else |
207 @${CC} ${LDFLAGS} -shared -Wl,-x \ | 207 @${CC} ${LDFLAGS} ${SSP_CFLAGS} -shared -Wl,-x \ |
208 -o ${.TARGET} -Wl,-soname,${SONAME} \ 209 `NM='${NM}' lorder ${SOBJS} | tsort -q` ${LDADD} 210.endif 211.if defined(CTFMERGE) 212 ${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${SOBJS} 213.endif 214.endif 215 --- 178 unchanged lines hidden --- | 208 -o ${.TARGET} -Wl,-soname,${SONAME} \ 209 `NM='${NM}' lorder ${SOBJS} | tsort -q` ${LDADD} 210.endif 211.if defined(CTFMERGE) 212 ${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${SOBJS} 213.endif 214.endif 215 --- 178 unchanged lines hidden --- |