mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 20:03:25 +01:00
Merge pull request #47 from devurandom/master
Fix check for toxcore by linking sodium in the correct place
This commit is contained in:
commit
87a29e43c9
@ -349,7 +349,7 @@ if test "x$LIBTOXCORE_FOUND" = "xno"; then
|
||||
LIBTOXCORE_LDFLAGS=
|
||||
LDFLAGS_SAVE="$LDFLAGS"
|
||||
if test -n "$LIBTOXCORE_SEARCH_LIBS"; then
|
||||
LDFLAGS="$LDFLAGS $LIBSODIUM_LDFLAGS -L$LIBTOXCORE_SEARCH_LIBS $LIBSODIUM_LIBS"
|
||||
LDFLAGS="$LDFLAGS $LIBSODIUM_LDFLAGS -L$LIBTOXCORE_SEARCH_LIBS"
|
||||
AC_CHECK_LIB([toxcore], [tox_new],
|
||||
[
|
||||
LIBTOXCORE_LDFLAGS="-L$LIBTOXCORE_SEARCH_LIBS"
|
||||
@ -360,10 +360,11 @@ if test "x$LIBTOXCORE_FOUND" = "xno"; then
|
||||
],
|
||||
[
|
||||
$WINSOCK2_LIBS
|
||||
$LIBSODIUM_LIBS
|
||||
]
|
||||
)
|
||||
else
|
||||
LDFLAGS="$LDFLAGS $LIBSODIUM_LDFLAGS $LIBSODIUM_LIBS"
|
||||
LDFLAGS="$LDFLAGS $LIBSODIUM_LDFLAGS"
|
||||
AC_CHECK_LIB([toxcore], [tox_new],
|
||||
[],
|
||||
[
|
||||
@ -371,6 +372,7 @@ if test "x$LIBTOXCORE_FOUND" = "xno"; then
|
||||
],
|
||||
[
|
||||
$WINSOCK2_LIBS
|
||||
$LIBSODIUM_LIBS
|
||||
]
|
||||
)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user