diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2017-03-01 23:21:57 +0300 |
---|---|---|
committer | Vincent Torri <vincent.torri@gmail.com> | 2017-03-01 23:21:57 +0300 |
commit | 131eb2a89c5c3c0defb1ec63cce28dd535af698d (patch) | |
tree | 93f655d6651759688257b5ce90ed4fb51b70a589 | |
parent | 1e572ffe233a3fe8eddbc359817508dd2044e7ee (diff) |
Fix link on Windows : LIBS must be added to LDLIBS for all OS
-rw-r--r-- | examples/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
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) |