Skip to content

Commit

Permalink
Limit -ldl to Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
attah committed Nov 29, 2024
1 parent 28fbb9a commit 613c276
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 613c276

Please sign in to comment.