The infinite loop noted in PR#30999 is cause by inlining functions on
any system, so inline functions should alway be disabled.
This commit is contained in:
parent
a71aeafcb4
commit
8b1d1e04b8
2 changed files with 5 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.45 2010/01/27 18:14:05 joerg Exp $
|
||||
# $NetBSD: Makefile,v 1.46 2011/10/31 22:58:45 sbd Exp $
|
||||
#
|
||||
|
||||
DISTNAME= procmail-3.22
|
||||
|
@ -30,6 +30,10 @@ PROCMAIL_TRUSTED_IDS?=\
|
|||
|
||||
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
|
||||
|
||||
### Inlining functions (implied by -O3 or higher) cause the strstr() test
|
||||
### to enter an infinite loop so disable it. This fixes PR pkg/30999.
|
||||
CFLAGS+= -fno-inline-functions
|
||||
|
||||
pre-configure:
|
||||
${ECHO} "#define TRUSTED_IDS {${PROCMAIL_TRUSTED_IDS:Q}}" \
|
||||
>> ${WRKSRC}/config.h
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
# $NetBSD: hacks.mk,v 1.1 2005/12/23 04:36:45 jlam Exp $
|
||||
|
||||
### [Fri Dec 23 04:33:11 UTC 2005 : jlam]
|
||||
### Inlining functions seems to cause strstr() to enter an infinite loop
|
||||
### on Solaris, so disable it. This fixes PR pkg/30999.
|
||||
###
|
||||
.if ${OPSYS} == "SunOS"
|
||||
PKG_HACKS+= solaris-inline
|
||||
CFLAGS+= -fno-inline-functions
|
||||
.endif
|
Loading…
Reference in a new issue