diff options
author | Mark Johnston <markj@FreeBSD.org> | 2013-03-28 04:13:52 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2013-03-28 04:13:52 +0000 |
commit | 22f3da672d1423292354f04467f8c666a5f8a57b (patch) | |
tree | 9e703938beacde028a3b3098ec763882451541ca /share | |
parent | e9d210a5bf4ffbc4068eddbbacb1616e59891489 (diff) | |
download | src-22f3da672d1423292354f04467f8c666a5f8a57b.tar.gz src-22f3da672d1423292354f04467f8c666a5f8a57b.zip |
Make sure that ${SHLIB_NAME}.debug and ${SHLIB_NAME}.symbols are always
deleted by a "make clean" when DEBUG_FLAGS is set.
Reported by: gleb
Approved by: emaste (co-mentor)
Notes
Notes:
svn path=/head/; revision=248806
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.lib.mk | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 3664210bc036..38c8de395b30 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -202,6 +202,7 @@ ${SHLIB_NAME_FULL}: ${SOBJS} .endif .if defined(DEBUG_FLAGS) +CLEANFILES+= ${SHLIB_NAME_FULL} ${SHLIB_NAME}.symbols ${SHLIB_NAME}: ${SHLIB_NAME_FULL} ${SHLIB_NAME}.symbols ${OBJCOPY} --strip-debug --add-gnu-debuglink=${SHLIB_NAME}.symbols \ ${SHLIB_NAME_FULL} ${.TARGET} @@ -209,7 +210,7 @@ ${SHLIB_NAME}: ${SHLIB_NAME_FULL} ${SHLIB_NAME}.symbols ${SHLIB_NAME}.symbols: ${SHLIB_NAME_FULL} ${OBJCOPY} --only-keep-debug ${SHLIB_NAME_FULL} ${.TARGET} .endif -.endif +.endif #defined(SHLIB_NAME) .if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB) && ${MK_TOOLCHAIN} != "no" _LIBS+= lib${LIB}_pic.a @@ -398,10 +399,7 @@ clean: .endif rm -f ${SHLIB_LINK} .endif -.if defined(LIB) && !empty(LIB) - rm -f lib${LIB}.so.* lib${LIB}.so -.endif -.endif +.endif # defined(SHLIB_NAME) .if defined(WANT_LINT) && defined(LIB) && !empty(LIB) rm -f ${LINTOBJS} .endif |