diff --git a/Makefile b/Makefile index 0bf18472c..161039dc8 100644 --- a/Makefile +++ b/Makefile @@ -118,8 +118,10 @@ ifeq ($(UNAME),Darwin) endif ifneq (MinGW,$(UNAME)) - LDFLAGS += -ldl - LDLIBS += -ldl + ifneq (FreeBSD,$(UNAME)) + LDFLAGS += -ldl + LDLIBS += -ldl + endif endif ifneq ($(BUILD),shared)