Deleted Added
full compact
bsd.lib.mk (243933) bsd.lib.mk (244224)
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 243933 2012-12-06 01:31:25Z eadler $
2# $FreeBSD: head/share/mk/bsd.lib.mk 244224 2012-12-14 18:30:01Z emaste $
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.

--- 23 unchanged lines hidden (view full) ---

34.endif
35
36.if defined(DEBUG_FLAGS)
37CFLAGS+= ${DEBUG_FLAGS}
38
39.if ${MK_CTF} != "no" && ${DEBUG_FLAGS:M-g} != ""
40CTFFLAGS+= -g
41.endif
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.

--- 23 unchanged lines hidden (view full) ---

34.endif
35
36.if defined(DEBUG_FLAGS)
37CFLAGS+= ${DEBUG_FLAGS}
38
39.if ${MK_CTF} != "no" && ${DEBUG_FLAGS:M-g} != ""
40CTFFLAGS+= -g
41.endif
42.endif
43
44.if !defined(DEBUG_FLAGS)
42.else
45STRIP?= -s
46.endif
47
48.include <bsd.libnames.mk>
49
50# prefer .s to a .c, add .po, remove stuff not used in the BSD libraries
51# .So used for PIC object files
52.SUFFIXES:

--- 115 unchanged lines hidden (view full) ---

168_LIBS+= ${SHLIB_NAME}
169
170SOLINKOPTS= -shared -Wl,-x
171.if !defined(ALLOW_SHARED_TEXTREL)
172SOLINKOPTS+= -Wl,--fatal-warnings -Wl,--warn-shared-textrel
173.endif
174
175.if target(beforelinking)
43STRIP?= -s
44.endif
45
46.include <bsd.libnames.mk>
47
48# prefer .s to a .c, add .po, remove stuff not used in the BSD libraries
49# .So used for PIC object files
50.SUFFIXES:

--- 115 unchanged lines hidden (view full) ---

166_LIBS+= ${SHLIB_NAME}
167
168SOLINKOPTS= -shared -Wl,-x
169.if !defined(ALLOW_SHARED_TEXTREL)
170SOLINKOPTS+= -Wl,--fatal-warnings -Wl,--warn-shared-textrel
171.endif
172
173.if target(beforelinking)
176${SHLIB_NAME}: ${SOBJS} beforelinking
177.else
178${SHLIB_NAME}: ${SOBJS}
174${SHLIB_NAME}: beforelinking
179.endif
175.endif
176${SHLIB_NAME}: ${SOBJS}
180 @${ECHO} building shared library ${SHLIB_NAME}
181 @rm -f ${.TARGET} ${SHLIB_LINK}
182.if defined(SHLIB_LINK)
183 @ln -fs ${.TARGET} ${SHLIB_LINK}
184.endif
185.if !defined(NM)
186 @${CC} ${LDFLAGS} ${SSP_CFLAGS} ${SOLINKOPTS} \
187 -o ${.TARGET} -Wl,-soname,${SONAME} \

--- 212 unchanged lines hidden ---
177 @${ECHO} building shared library ${SHLIB_NAME}
178 @rm -f ${.TARGET} ${SHLIB_LINK}
179.if defined(SHLIB_LINK)
180 @ln -fs ${.TARGET} ${SHLIB_LINK}
181.endif
182.if !defined(NM)
183 @${CC} ${LDFLAGS} ${SSP_CFLAGS} ${SOLINKOPTS} \
184 -o ${.TARGET} -Wl,-soname,${SONAME} \

--- 212 unchanged lines hidden ---