diff --git a/tests/Makefile b/tests/Makefile index b743380..e64ba15 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,10 +1,14 @@ -LDFLAGS = -ldl -Wl,--export-dynamic -lcurl -ljpeg $(shell pkg-config --libs poppler-glib) -lz +LDFLAGS = -Wl,--export-dynamic -lcurl -ljpeg $(shell pkg-config --libs poppler-glib) -lz CXXFLAGS = -std=c++17 -g -pedantic -Wall -Werror -Wextra -I ../lib -I ../json11 -I ../bytestream \ $(shell pkg-config --cflags poppler-glib) TEST_INCLUDES = -I ../lib -I ../bytestream/minitest VPATH = ../bytestream ../lib ../json11 +ifeq ($(shell uname -s),Linux) + LDFLAGS += -ldl +endif + all: test test.o: test.cpp