diff --git a/gtests/net/packetdrill/Makefile.Linux b/gtests/net/packetdrill/Makefile.Linux
index 964c8e7640f6217f49db1e62c4fa3cc6ec383a01..2310254b23072b147f07406dfa06f444b1d0f57b 100644
--- a/gtests/net/packetdrill/Makefile.Linux
+++ b/gtests/net/packetdrill/Makefile.Linux
@@ -1,2 +1,2 @@
-packetdrill-ext-libs := -lpthread -lrt -lsctp
+packetdrill-ext-libs := -lpthread -lrt -ldl -lsctp -static
 include Makefile.common
diff --git a/gtests/net/packetdrill/Makefile.common b/gtests/net/packetdrill/Makefile.common
index d7ce394eadcbb72239ff2f09a179f52582c8ad51..c019a4c336b03e6ca5fa016fdddf9d567bdabb11 100644
--- a/gtests/net/packetdrill/Makefile.common
+++ b/gtests/net/packetdrill/Makefile.common
@@ -1,7 +1,6 @@
 all: binaries
 
 CFLAGS += -g -Wall -Werror -Wno-unknown-warning-option -Wno-address-of-packed-member
-LDFLAGS ?= -static
 
 parser.o: parser.y
 	bison --output=parser.c --defines=parser.h --report=state parser.y
@@ -37,7 +36,7 @@ packetdrill-lib := \
 packetdrill-objs := packetdrill.o $(packetdrill-lib)
 
 packetdrill: $(packetdrill-objs)
-	$(CC) -o packetdrill -g $(LDFLAGS) $(packetdrill-objs) $(packetdrill-ext-libs)
+	$(CC) -o packetdrill -g $(packetdrill-objs) $(packetdrill-ext-libs)
 
 test-bins := checksum_test packet_parser_test packet_to_string_test
 tests: $(test-bins)