From 5eaf7ea45c8702a4d337359a8e5e6f91261fa33f Mon Sep 17 00:00:00 2001 From: Lucas Rangit MAGASWERAN Date: Sun, 15 Nov 2015 20:33:52 -0800 Subject: [PATCH] c: specify library in LDLIBS. LDLIBS tells make to put `-lcouchbase` *after* the source/object files that include them. Otherwise the linker will decide they are not needed. Reference: https://forums.couchbase.com/t/5899 --- c/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/Makefile b/c/Makefile index 964a112..fefe541 100644 --- a/c/Makefile +++ b/c/Makefile @@ -10,4 +10,4 @@ clean: rm -rf *.dSYM CPPFLAGS=-Wall -g -LDFLAGS=-lcouchbase +LDLIBS=-lcouchbase