From e379b72e209d55a68ac76a614c358e7bb8ea23f1 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 27 Mar 2016 23:01:19 +0000 Subject: testing/http-parser: new abuild https://github.com/nodejs/http-parser HTTP request/response parser for C --- ...04-makefile-add-CFLAGS-to-linking-command.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 testing/http-parser/0004-makefile-add-CFLAGS-to-linking-command.patch (limited to 'testing/http-parser/0004-makefile-add-CFLAGS-to-linking-command.patch') diff --git a/testing/http-parser/0004-makefile-add-CFLAGS-to-linking-command.patch b/testing/http-parser/0004-makefile-add-CFLAGS-to-linking-command.patch new file mode 100644 index 0000000000..e21cd71549 --- /dev/null +++ b/testing/http-parser/0004-makefile-add-CFLAGS-to-linking-command.patch @@ -0,0 +1,31 @@ +From 62b1450cfe2e0df2d912279d38edf1b916020101 Mon Sep 17 00:00:00 2001 +From: hasufell +Date: Mon, 2 Nov 2015 16:39:31 +0100 +Subject: [PATCH 4/4] makefile: add CFLAGS to linking command + +Although we compile the objects explicitly there are some CFLAGS +that may also affect linking, which is not always obvious. + +This can also be a problem for toolchains that support multiple ABIs +and need to set CFLAGS=, which will cause linking +to either fail or produce an unusable executable/library. +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index cbe93e8..ae16f08 100644 +--- a/Makefile ++++ b/Makefile +@@ -102,7 +102,7 @@ libhttp_parser.o: http_parser.c http_parser.h Makefile + $(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o + + library: libhttp_parser.o +- $(CC) $(LDFLAGS_LIB) -o $(SONAME) $< ++ $(CC) $(CFLAGS_LIB) $(LDFLAGS_LIB) -o $(SONAME) $< + + package: http_parser.o + $(AR) rcs libhttp_parser.a http_parser.o +-- +2.6.1 + -- cgit v1.2.3