aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2022-06-02 10:20:03 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2022-06-02 10:20:03 +0000
commit7ca4bf13276577544841a58c208e9b3fd7230b9a (patch)
tree93bcf059cc01c9f759e406c1d4521b3dc6c815f8
parent91fa7c7caa6395a075cb16b2ae81c2b25f5b1108 (diff)
downloadports-7ca4bf13276577544841a58c208e9b3fd7230b9a.tar.gz
ports-7ca4bf13276577544841a58c208e9b3fd7230b9a.zip
devel/ncurses: Do not strip libraries when DEBUG option is set
Approved by: blanket (simple fix)
-rw-r--r--devel/ncurses/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/devel/ncurses/Makefile b/devel/ncurses/Makefile
index 31f487e0980a..463448b1d6b3 100644
--- a/devel/ncurses/Makefile
+++ b/devel/ncurses/Makefile
@@ -95,7 +95,9 @@ post-install:
${RM} ${STAGEDIR}${PREFIX}/lib/libncurses.so
${ECHO} "INPUT(libncurses.so.${PORTVERSION:R} AS_NEEDED(-ltinfo))" > ${STAGEDIR}${PREFIX}/lib/libncurses.so
+.if ! ${PORT_OPTIONS:MDEBUG}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.${DISTVERSION}
+.endif
# backwards compatibility, remove 2021-07-02
${RLN} ${STAGEDIR}${PREFIX}/lib/libncurses.so ${STAGEDIR}${PREFIX}/lib/libncursesw.so