From 131eb2a89c5c3c0defb1ec63cce28dd535af698d Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Wed, 1 Mar 2017 21:21:57 +0100 Subject: [PATCH] Fix link on Windows : LIBS must be added to LDLIBS for all OS --- examples/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/Makefile b/examples/Makefile index c426338..31030fa 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -23,6 +23,8 @@ else CFLAGS += -pthread endif +LDLIBS += $(LIBS) + ifeq ($(OS),Windows_NT) else UNAM := $(shell uname -s) @@ -31,7 +33,7 @@ else CFLAGS += -D_POSIX_C_SOURCE=199309L endif - LDLIBS += $(LIBS) -lm + LDLIBS += -lm endif find_files_h = $(wildcard $(dir)/*.h)