PKGBUILDs/community/haproxy/0001-Use-CFLAGS-and-LDFLAGS-when-building-contrib.patch

40 lines
1.3 KiB
Diff
Raw Normal View History

2019-02-16 19:46:40 +00:00
diff --git a/contrib/halog/Makefile b/contrib/halog/Makefile
2020-07-21 13:46:41 +00:00
index bf67c1f..e98a3fa 100644
2019-02-16 19:46:40 +00:00
--- a/contrib/halog/Makefile
+++ b/contrib/halog/Makefile
@@ -16,7 +16,7 @@ DEFINE =
OBJS = halog
halog: halog.c fgets2.c
2020-07-21 13:46:41 +00:00
- $(CC) $(OPTIMIZE) $(DEFINE) -o $@ $(INCLUDE) $(SRC)/ebtree.c $(SRC)/eb32tree.c $(SRC)/eb64tree.c $(SRC)/ebmbtree.c $(SRC)/ebsttree.c $(SRC)/ebistree.c $(SRC)/ebimtree.c $^
+ $(CC) $(OPTIMIZE) $(CFLAGS) $(LDFLAGS) $(DEFINE) -o $@ $(INCLUDE) $(SRC)/ebtree.c $(SRC)/eb32tree.c $(SRC)/eb64tree.c $(SRC)/ebmbtree.c $(SRC)/ebsttree.c $(SRC)/ebistree.c $(SRC)/ebimtree.c $^
2019-02-16 19:46:40 +00:00
clean:
rm -f $(OBJS) *.[oas]
diff --git a/contrib/ip6range/Makefile b/contrib/ip6range/Makefile
2020-07-21 13:46:41 +00:00
index 55849b6..1276b97 100644
2019-02-16 19:46:40 +00:00
--- a/contrib/ip6range/Makefile
+++ b/contrib/ip6range/Makefile
@@ -7,7 +7,7 @@ OBJS = ip6range
all: $(OBJS)
%: %.c
- $(CC) $(LDFLAGS) $(OPTIMIZE) -o $@ $^
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OPTIMIZE) -o $@ $^
clean:
rm -f $(OBJS) *.o *.a *~
diff --git a/contrib/iprange/Makefile b/contrib/iprange/Makefile
2020-07-21 13:46:41 +00:00
index b3c72ed..e92baf3 100644
2019-02-16 19:46:40 +00:00
--- a/contrib/iprange/Makefile
+++ b/contrib/iprange/Makefile
@@ -7,7 +7,7 @@ OBJS = iprange
all: $(OBJS)
%: %.c
- $(CC) $(LDFLAGS) $(OPTIMIZE) -o $@ $^
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OPTIMIZE) -o $@ $^
clean:
rm -f $(OBJS) *.o *.a *~