aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Cochard <olivier@FreeBSD.org>2025-06-10 02:01:58 +0000
committerOlivier Cochard <olivier@FreeBSD.org>2025-06-10 10:03:45 +0000
commit983044439fd6a634674e9d92163452f662b555a5 (patch)
tree3c944e7028fcb2bbbb32253229e7906492c0203a
parent990b5a9cdec2a3bf034094f7a83b6a80bab7ed73 (diff)
net/packetdrill: Respect LDFLAGS
No functional change intended. Sponsored by: Netflix
-rw-r--r--net/packetdrill/files/patch-Makefile.common31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/packetdrill/files/patch-Makefile.common b/net/packetdrill/files/patch-Makefile.common
new file mode 100644
index 000000000000..87bbe4813039
--- /dev/null
+++ b/net/packetdrill/files/patch-Makefile.common
@@ -0,0 +1,31 @@
+--- Makefile.common.orig 2025-04-23 21:59:38 UTC
++++ Makefile.common
+@@ -37,7 +37,7 @@ packetdrill: $(packetdrill-objs)
+ packetdrill-objs := packetdrill.o $(packetdrill-lib)
+
+ packetdrill: $(packetdrill-objs)
+- $(CC) -o packetdrill -g $(packetdrill-objs) $(packetdrill-ext-libs)
++ $(CC) $(LDFLAGS) -o packetdrill -g $(packetdrill-objs) $(packetdrill-ext-libs)
+
+ test-bins := checksum_test packet_parser_test packet_to_string_test
+ tests: $(test-bins)
+@@ -49,16 +49,16 @@ checksum_test: $(checksum_test-objs)
+
+ checksum_test-objs := $(packetdrill-lib) checksum_test.o
+ checksum_test: $(checksum_test-objs)
+- $(CC) -o checksum_test $(checksum_test-objs) $(packetdrill-ext-libs)
++ $(CC) $(LDFLAGS) -o checksum_test $(checksum_test-objs) $(packetdrill-ext-libs)
+
+ packet_parser_test-objs := $(packetdrill-lib) packet_parser_test.o
+ packet_parser_test: $(packet_parser_test-objs)
+- $(CC) -o packet_parser_test $(packet_parser_test-objs) \
++ $(CC) $(LDFLAGS) -o packet_parser_test $(packet_parser_test-objs) \
+ $(packetdrill-ext-libs)
+
+ packet_to_string_test-objs := $(packetdrill-lib) packet_to_string_test.o
+ packet_to_string_test: $(packet_to_string_test-objs)
+- $(CC) -o packet_to_string_test $(packet_to_string_test-objs) \
++ $(CC) $(LDFLAGS) -o packet_to_string_test $(packet_to_string_test-objs) \
+ $(packetdrill-ext-libs)
+
+ clean: