summaryrefslogtreecommitdiff
blob: f4ebe2708f96152e3b294a73aa68f0925d39e865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Julian Ospald <julian.ospald@googlemail.com>
Date: Fri Apr 13 18:44:35 UTC 2012

respect LDFLAGS and CFLAGS

--- Makefile
+++ Makefile
@@ -44,7 +44,7 @@
 	$(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o
 
 library: libhttp_parser.o
-	$(CC) -shared -o libhttp_parser.so libhttp_parser.o
+	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o libhttp_parser.so libhttp_parser.o
 
 package: http_parser.o
 	$(AR) rcs libhttp_parser.a http_parser.o