git: 950dfcdb8daf - main - security/nflib: Turn on inner optimization option when no WITH_DEBUG is defined

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 07 Aug 2023 07:01:42 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=950dfcdb8daf2917b474950a8d71b1dc722fbe48

commit 950dfcdb8daf2917b474950a8d71b1dc722fbe48
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-08-07 07:00:40 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-08-07 07:00:40 +0000

    security/nflib: Turn on inner optimization option when no WITH_DEBUG is defined
    
    PR:             272702
---
 security/nflib/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/security/nflib/Makefile b/security/nflib/Makefile
index 4f8abceb5760..7f69a0b25581 100644
--- a/security/nflib/Makefile
+++ b/security/nflib/Makefile
@@ -20,11 +20,14 @@ LIB_DEPENDS=	libmpfr.so:math/mpfr \
 		libgmp.so:math/gmp
 
 USES=		cmake:testing compiler:c++11-lang localbase
+USE_LDCONFIG=	yes
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	quarkslab
 GH_PROJECT=	NFLlib
-USE_LDCONFIG=	yes
 
+.if !defined(WITH_DEBUG)
 CMAKE_ON=	NFL_OPTIMIZED
+.endif
 
 .include <bsd.port.mk>