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

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlionel vitte <lionel.vitte@free.fr>2013-03-20 17:13:43 +0400
committerlionel vitte <lionel.vitte@free.fr>2013-03-20 17:13:43 +0400
commite2886f1e7e93426f76c286605d0048b27f12f137 (patch)
treeeb9d80b8574fac37d1918bbe086899650415e9ed /examples
parent7dbf4039ae0881407fc9ead24c09c1d7cfd4103a (diff)
Fix link issue in network examples
Diffstat (limited to 'examples')
-rw-r--r--examples/network/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/network/Makefile b/examples/network/Makefile
index 60969bd87..810eb705b 100644
--- a/examples/network/Makefile
+++ b/examples/network/Makefile
@@ -3,7 +3,8 @@ default: all
CC = gcc
CFLAGS += -g
CFLAGS += -I../../include
-LDFLAGS += -L../../build -L../.. -lgit2 -lpthread
+LDFLAGS += -L../../build -L../..
+LIBRARIES += -lgit2 -lpthread
OBJECTS = \
git2.o \
@@ -13,7 +14,7 @@ OBJECTS = \
index-pack.o
all: $(OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) -o git2 $(OBJECTS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o git2 $(OBJECTS) $(LIBRARIES)
clean:
$(RM) $(OBJECTS)