Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lexborisov/Modest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2017-03-01 23:21:57 +0300
committerVincent Torri <vincent.torri@gmail.com>2017-03-01 23:21:57 +0300
commit131eb2a89c5c3c0defb1ec63cce28dd535af698d (patch)
tree93f655d6651759688257b5ce90ed4fb51b70a589
parent1e572ffe233a3fe8eddbc359817508dd2044e7ee (diff)
Fix link on Windows : LIBS must be added to LDLIBS for all OS
-rw-r--r--examples/Makefile4
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)