summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.lib.mk
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2012-12-14 18:30:01 +0000
committeremaste <emaste@FreeBSD.org>2012-12-14 18:30:01 +0000
commit83744c884cc3ce9e58e162c15a7575e303696015 (patch)
treef6edeaf6a3fae861361ad351f6d3ecd7997a9221 /share/mk/bsd.lib.mk
parent1d3ec906ca23ea5f5ff60e8ebe9b3bcc4f9033d2 (diff)
downloadFreeBSD-src-83744c884cc3ce9e58e162c15a7575e303696015.zip
FreeBSD-src-83744c884cc3ce9e58e162c15a7575e303696015.tar.gz
Minor refactoring prior to .symbols file changes
- Combine .if x and .if !x using .else - Separate out beforelinking dependency - Add comments to clarify .if nesting Sponsored by: ADARA Networks
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r--share/mk/bsd.lib.mk9
1 files changed, 3 insertions, 6 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 2c96df1..0335d53 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -39,9 +39,7 @@ CFLAGS+= ${DEBUG_FLAGS}
.if ${MK_CTF} != "no" && ${DEBUG_FLAGS:M-g} != ""
CTFFLAGS+= -g
.endif
-.endif
-
-.if !defined(DEBUG_FLAGS)
+.else
STRIP?= -s
.endif
@@ -173,10 +171,9 @@ SOLINKOPTS+= -Wl,--fatal-warnings -Wl,--warn-shared-textrel
.endif
.if target(beforelinking)
-${SHLIB_NAME}: ${SOBJS} beforelinking
-.else
-${SHLIB_NAME}: ${SOBJS}
+${SHLIB_NAME}: beforelinking
.endif
+${SHLIB_NAME}: ${SOBJS}
@${ECHO} building shared library ${SHLIB_NAME}
@rm -f ${.TARGET} ${SHLIB_LINK}
.if defined(SHLIB_LINK)
OpenPOWER on IntegriCloud