Let this build on gcc2 arch; same thing as recent diff for www/lighttpd.
From Brad, following a report from Sevan.
This commit is contained in:
parent
2fe5ee4af4
commit
53212d89da
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.7 2009/09/29 07:33:31 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.8 2010/07/06 21:10:50 sthen Exp $
|
||||
|
||||
COMMENT= spawn FastCGI processes
|
||||
|
||||
DISTNAME= spawn-fcgi-1.6.3
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.lighttpd.net/download/
|
||||
|
||||
@ -17,6 +18,7 @@ PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_STYLE= autoconf
|
||||
AUTOCONF_VERSION= 2.64
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
22
www/spawn-fcgi/patches/patch-configure_ac
Normal file
22
www/spawn-fcgi/patches/patch-configure_ac
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-configure_ac,v 1.1 2010/07/06 21:10:50 sthen Exp $
|
||||
--- configure.ac.orig Tue Jul 6 15:22:08 2010
|
||||
+++ configure.ac Tue Jul 6 15:22:43 2010
|
||||
@@ -69,7 +69,17 @@ fi
|
||||
|
||||
# check for extra compiler options (warning options)
|
||||
if test "${GCC}" = "yes"; then
|
||||
- CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
|
||||
+ CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic"
|
||||
+
|
||||
+ # Use std=gnu99 if we have new enough GCC
|
||||
+ old_cflags=${CFLAGS}
|
||||
+ CFLAGS="-std=gnu99"
|
||||
+ AC_TRY_COMPILE([
|
||||
+ ],, [
|
||||
+ CFLAGS="${CFLAGS} $old_cflags"
|
||||
+ ], [
|
||||
+ CFLAGS="${old_cflags}"
|
||||
+ ])
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(extra-warnings,
|
Loading…
Reference in New Issue
Block a user