Skip to content

Commit

Permalink
Makefile: fix mismatch ldflags
Browse files Browse the repository at this point in the history
The library option -l is not an LDFLAGS but a LDLIBS flag.

This fixes the mismatch ldflags.
  • Loading branch information
gportay committed Mar 19, 2024
1 parent dc0a5ec commit 87b13c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ ifeq ($(OS),GNU/Linux)
lib%.so: override LDFLAGS += -nodefaultlibs
endif
ifeq ($(OS),FreeBSD)
lib%.so: override LDFLAGS += -ldl
lib%.so: override LDLIBS += -ldl
endif
ifeq ($(OS),OpenBSD)
lib%.so: override LDFLAGS += -lpthread
lib%.so: override LDLIBS += -lpthread
endif

ifneq ($(COVERAGE),0)
Expand Down

0 comments on commit 87b13c3

Please sign in to comment.