Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/http-parser/files: http-parser-2.1-flags.patch
Date: Sun, 30 Jun 2013 20:27:36
Message-Id: 20130630202732.34B512171D@flycatcher.gentoo.org
1 hasufell 13/06/30 20:27:32
2
3 Added: http-parser-2.1-flags.patch
4 Log:
5 initial import wrt #410339
6
7 (Portage version: 2.2.0_alpha185/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
8
9 Revision Changes Path
10 1.1 net-libs/http-parser/files/http-parser-2.1-flags.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/http-parser/files/http-parser-2.1-flags.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/http-parser/files/http-parser-2.1-flags.patch?rev=1.1&content-type=text/plain
14
15 Index: http-parser-2.1-flags.patch
16 ===================================================================
17 commit 3752e633e23284133decc8ca8481e4416a317fbc
18 Author: hasufell <hasufell@g.o>
19 Date: Sun Jun 30 12:27:04 2013 +0200
20
21 respect system flags
22
23 diff --git a/Makefile b/Makefile
24 index 64e5c2f..2e20723 100644
25 --- a/Makefile
26 +++ b/Makefile
27 @@ -7,9 +7,9 @@ CPPFLAGS_DEBUG += $(CPPFLAGS_DEBUG_EXTRA)
28 CPPFLAGS_FAST = $(CPPFLAGS) -DHTTP_PARSER_STRICT=0
29 CPPFLAGS_FAST += $(CPPFLAGS_FAST_EXTRA)
30
31 -CFLAGS += -Wall -Wextra -Werror
32 -CFLAGS_DEBUG = $(CFLAGS) -O0 -g $(CFLAGS_DEBUG_EXTRA)
33 -CFLAGS_FAST = $(CFLAGS) -O3 $(CFLAGS_FAST_EXTRA)
34 +CFLAGS += -Wall -Wextra
35 +CFLAGS_DEBUG = $(CFLAGS) $(CFLAGS_DEBUG_EXTRA)
36 +CFLAGS_FAST = $(CFLAGS) $(CFLAGS_FAST_EXTRA)
37 CFLAGS_LIB = $(CFLAGS_FAST) -fPIC
38
39 test: test_g test_fast
40 @@ -44,7 +44,7 @@ libhttp_parser.o: http_parser.c http_parser.h Makefile
41 $(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o
42
43 library: libhttp_parser.o
44 - $(CC) -shared -o libhttp_parser.so libhttp_parser.o
45 + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o libhttp_parser.so libhttp_parser.o
46
47 package: http_parser.o
48 $(AR) rcs libhttp_parser.a http_parser.o