Skip to content

Commit

Permalink
c: specify library in LDLIBS.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lucasrangit committed Nov 16, 2015
1 parent 1803071 commit 5eaf7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ clean:
rm -rf *.dSYM

CPPFLAGS=-Wall -g
LDFLAGS=-lcouchbase
LDLIBS=-lcouchbase

0 comments on commit 5eaf7ea

Please sign in to comment.