Date: Tue, 3 Oct 2017 21:55:00 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r451174 - in head/devel/argp-standalone: . files Message-ID: <201710032155.v93Lt04C061124@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Tue Oct 3 21:55:00 2017 New Revision: 451174 URL: https://svnweb.freebsd.org/changeset/ports/451174 Log: Fix configure with clang avoiding nested function The detection of those issues was made by openbsd people (ajacoutot and rnagy) See http://www.undeadly.org/cgi?action=article;sid=20170930133438 For this port our fix is slightly different than what they did, still the idea is the same Reported by: ajacoutot@openbsd, rnagy@openbsd Added: head/devel/argp-standalone/files/patch-acinclude.m4 (contents, props changed) Modified: head/devel/argp-standalone/Makefile Modified: head/devel/argp-standalone/Makefile ============================================================================== --- head/devel/argp-standalone/Makefile Tue Oct 3 21:26:57 2017 (r451173) +++ head/devel/argp-standalone/Makefile Tue Oct 3 21:55:00 2017 (r451174) @@ -3,7 +3,7 @@ PORTNAME= argp-standalone PORTVERSION= 1.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= http://www.lysator.liu.se/~nisse/misc/ \ LOCAL/sem Added: head/devel/argp-standalone/files/patch-acinclude.m4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/argp-standalone/files/patch-acinclude.m4 Tue Oct 3 21:55:00 2017 (r451174) @@ -0,0 +1,20 @@ +--- acinclude.m4.orig 2004-02-07 17:15:46 UTC ++++ acinclude.m4 +@@ -284,8 +284,6 @@ AC_DEFUN([LSH_GCC_ATTRIBUTES], + lsh_cv_c_attribute, + [ AC_TRY_COMPILE([ + #include <stdlib.h> +-], +-[ + static void foo(void) __attribute__ ((noreturn)); + + static void __attribute__ ((noreturn)) +@@ -293,6 +291,8 @@ foo(void) + { + exit(1); + } ++], ++[ + ], + lsh_cv_c_attribute=yes, + lsh_cv_c_attribute=no)])
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710032155.v93Lt04C061124>