shared-build.patch 694 B

1234567891011121314151617181920212223
  1. diff --git a/Makefile b/Makefile
  2. index 5e19d0a..96c6ff3 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -3,7 +3,7 @@ DEPS=libtoxcore
  6. CC=gcc
  7. CFLAGS=-g #-std=c99
  8. CFLAGS += $(shell pkg-config --cflags $(DEPS))
  9. -LDFLAGS=-g -pthread -lm -static -lrt
  10. +LDFLAGS=-g -pthread -lm -lrt
  11. LDFLAGS += $(shell pkg-config --libs $(DEPS))
  12. OBJECTS=$(SOURCES:.c=.o)
  13. INCLUDES = $(wildcard *.h)
  14. @@ -19,7 +19,7 @@ gitversion.c: gitversion.h
  15. $(CC) $(CFLAGS) $< -c -o $@
  16. tuntox: $(OBJECTS) $(INCLUDES)
  17. - $(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) /usr/local/lib/libsodium.a /usr/local/lib/libtoxcore.a
  18. + $(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) -lsodium
  19. cscope.out:
  20. cscope -bv ./*.[ch]