mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
handle libsodium dependency of misc_tools correctly for autotools
This commit is contained in:
parent
7aa57afeba
commit
8e0aea1add
|
@ -8,6 +8,10 @@ endif
|
||||||
noinst_LTLIBRARIES += libmisc_tools.la
|
noinst_LTLIBRARIES += libmisc_tools.la
|
||||||
libmisc_tools_la_SOURCES = ../testing/misc_tools.c ../testing/misc_tools.h
|
libmisc_tools_la_SOURCES = ../testing/misc_tools.c ../testing/misc_tools.h
|
||||||
|
|
||||||
|
libmisc_tools_la_CFLAGS = $(LIBSODIUM_CFLAGS)
|
||||||
|
|
||||||
|
libmisc_tools_la_LIBADD = $(LIBSODIUM_LDFLAGS)
|
||||||
|
|
||||||
if BUILD_TESTING
|
if BUILD_TESTING
|
||||||
|
|
||||||
noinst_PROGRAMS += DHT_test \
|
noinst_PROGRAMS += DHT_test \
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef VANILLA_NACL
|
#ifndef VANILLA_NACL
|
||||||
#include "sodium.h"
|
#include <sodium.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user