drop warning flags not available with gcc < 4

This commit is contained in:
naddy 2011-08-25 19:14:58 +00:00
parent f9645dcd18
commit 2e8c739141

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-makefile,v 1.5 2011/06/22 18:09:51 jasper Exp $
--- makefile.orig Mon Jun 20 23:35:56 2011
+++ makefile Mon Jun 20 23:36:51 2011
@@ -1,7 +1,7 @@
$OpenBSD: patch-makefile,v 1.6 2011/08/25 19:14:58 naddy Exp $
--- makefile.orig Wed Feb 16 16:03:25 2011
+++ makefile Thu Aug 25 21:09:29 2011
@@ -1,14 +1,13 @@
LIBNAME = lpeg
-LUADIR = /usr/include/lua5.1/
+LUADIR = ${LOCALBASE}/include/
@ -9,9 +9,17 @@ $OpenBSD: patch-makefile,v 1.5 2011/06/22 18:09:51 jasper Exp $
-COPT = -O2 -DNDEBUG
+COPT = -O2 -DNDEBUG -fPIC -shared
CWARNS = -Wall -Wextra -pedantic \
-CWARNS = -Wall -Wextra -pedantic \
+CWARNS = -Wall -pedantic \
-Waggregate-return \
@@ -21,8 +21,7 @@ CWARNS = -Wall -Wextra -pedantic \
-Wbad-function-cast \
-Wcast-align \
-Wcast-qual \
- -Wdeclaration-after-statement \
-Wdisabled-optimization \
-Wmissing-prototypes \
-Wnested-externs \
@@ -21,8 +20,7 @@ CWARNS = -Wall -Wextra -pedantic \
# -Wunreachable-code \