diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-03-27 23:01:19 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-03-30 08:26:05 +0000 |
commit | e379b72e209d55a68ac76a614c358e7bb8ea23f1 (patch) | |
tree | ac52f0611b80b1b9e3bf4bbcda6318b72b862ca3 /testing/http-parser/0004-makefile-add-CFLAGS-to-linking-command.patch | |
parent | 83c66b420d4c2bd4b8a93e1fe243161ce8efc22d (diff) | |
download | aports-e379b72e209d55a68ac76a614c358e7bb8ea23f1.tar.bz2 aports-e379b72e209d55a68ac76a614c358e7bb8ea23f1.tar.xz |
testing/http-parser: new abuild
https://github.com/nodejs/http-parser
HTTP request/response parser for C
Diffstat (limited to 'testing/http-parser/0004-makefile-add-CFLAGS-to-linking-command.patch')
-rw-r--r-- | testing/http-parser/0004-makefile-add-CFLAGS-to-linking-command.patch | 31 |
1 files changed, 31 insertions, 0 deletions
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 <hasufell@hasufell.de> +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=<abi selector>, 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 + |