diff --git a/gtests/net/packetdrill/Makefile.Darwin b/gtests/net/packetdrill/Makefile.Darwin index 38284ca4e6b88ebc3ae2912ba1744720f9190e3a..3f374222c0a423d8bbe57a4a751eaff0887842f8 100644 --- a/gtests/net/packetdrill/Makefile.Darwin +++ b/gtests/net/packetdrill/Makefile.Darwin @@ -1,2 +1,3 @@ -packetdrill-ext-libs := -lpthread -lpcap +packetdrill-ext-libs := -pthread -lpcap +LDFLAGS = include Makefile.common diff --git a/gtests/net/packetdrill/Makefile.common b/gtests/net/packetdrill/Makefile.common index 06a865dbbd8a082002323ad88b67c0fa2b69e05b..cfd80e3d9b32eacf73e181d24c48c57b7c01c20d 100644 --- a/gtests/net/packetdrill/Makefile.common +++ b/gtests/net/packetdrill/Makefile.common @@ -1,6 +1,7 @@ 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 @@ -35,7 +36,7 @@ packetdrill-lib := \ packetdrill-objs := packetdrill.o $(packetdrill-lib) packetdrill: $(packetdrill-objs) - $(CC) -o packetdrill -g -static $(packetdrill-objs) $(packetdrill-ext-libs) + $(CC) -o packetdrill -g $(LDFLAGS) $(packetdrill-objs) $(packetdrill-ext-libs) test-bins := checksum_test packet_parser_test packet_to_string_test tests: $(test-bins)