git: 9724b5e9e0b3 - main - security/libtasn1: remove clang workaround

From: Roman Bogorodskiy <novel_at_FreeBSD.org>
Date: Thu, 30 Dec 2021 10:55:11 UTC
The branch main has been updated by novel:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9724b5e9e0b31a29080565f3bbbd7f3f4fcf3499

commit 9724b5e9e0b31a29080565f3bbbd7f3f4fcf3499
Author:     Roman Bogorodskiy <novel@FreeBSD.org>
AuthorDate: 2021-12-30 09:54:00 +0000
Commit:     Roman Bogorodskiy <novel@FreeBSD.org>
CommitDate: 2021-12-30 10:54:55 +0000

    security/libtasn1: remove clang workaround
    
    The previously applied clang 10+ workaround which lowered -O
    optimization to -O1 appears to be no longer needed according to the
    upstream issue https://gitlab.com/gnutls/libtasn1/-/issues/30.
    
    PR:             252548
    Reported by:    Brad Smith
---
 security/libtasn1/Makefile | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/security/libtasn1/Makefile b/security/libtasn1/Makefile
index 624a067dc2e1..72c898ac460c 100644
--- a/security/libtasn1/Makefile
+++ b/security/libtasn1/Makefile
@@ -13,7 +13,7 @@ LICENSE=	LGPL21+ GPLv3
 LICENSE_COMB=	multi
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cpe libtool pathfix pkgconfig compiler
+USES=		cpe libtool pathfix pkgconfig
 USE_CSTD=	c99
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
@@ -30,15 +30,8 @@ INFO=		libtasn1
 DOCS_CONFIGURE_ENABLE=	gtk-doc
 DOCS_BUILD_DEPENDS=	gtkdoc-check:textproc/gtk-doc
 
-.include <bsd.port.pre.mk>
-
-# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252548
-.if ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 100
-CFLAGS:=		${CFLAGS:C/-O[2-9]/-O1/g}
-.endif
-
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>