diff options
author | ohauer <ohauer@FreeBSD.org> | 2014-04-27 22:11:30 +0800 |
---|---|---|
committer | ohauer <ohauer@FreeBSD.org> | 2014-04-27 22:11:30 +0800 |
commit | 88771b0080a6cc836e312a84b19306209c2db67e (patch) | |
tree | 11d61262a2972b3fc05a38e55c452a4258606f26 /Mk | |
parent | 087f3fa3703bf24884517d4df86d263dc60a3f7a (diff) | |
download | freebsd-ports-gnome-88771b0080a6cc836e312a84b19306209c2db67e.tar.gz freebsd-ports-gnome-88771b0080a6cc836e312a84b19306209c2db67e.tar.zst freebsd-ports-gnome-88771b0080a6cc836e312a84b19306209c2db67e.zip |
- automatically strip modules build with
AP_FAST_BUILD, except if DEBUG is set
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.apache.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mk/bsd.apache.mk b/Mk/bsd.apache.mk index 38bcc9d0b181..7e23c58ebb29 100644 --- a/Mk/bsd.apache.mk +++ b/Mk/bsd.apache.mk @@ -488,6 +488,12 @@ do-install: . else @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR} @${APXS} -S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR} -i -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT} +. if !defined(DEBUG) + @${ECHO_MSG} "===> strip ${APACHEMODDIR}/${MODULENAME}.so" + @[ -e ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so ] && ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so +. else + @${ECHO_MSG} "===> DEBUG is set, will not strip ${APACHEMODDIR}/${MODULENAME}.so" +. endif . endif .endif .endif # defined(AP_FAST_BUILD) |