mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 09:53:02 +01:00
Fix check for toxcore by linking sodium in the correct place
This commit is contained in:
parent
8a2ffcd0ff
commit
236e79cd26
@ -349,7 +349,7 @@ if test "x$LIBTOXCORE_FOUND" = "xno"; then
|
|||||||
LIBTOXCORE_LDFLAGS=
|
LIBTOXCORE_LDFLAGS=
|
||||||
LDFLAGS_SAVE="$LDFLAGS"
|
LDFLAGS_SAVE="$LDFLAGS"
|
||||||
if test -n "$LIBTOXCORE_SEARCH_LIBS"; then
|
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],
|
AC_CHECK_LIB([toxcore], [tox_new],
|
||||||
[
|
[
|
||||||
LIBTOXCORE_LDFLAGS="-L$LIBTOXCORE_SEARCH_LIBS"
|
LIBTOXCORE_LDFLAGS="-L$LIBTOXCORE_SEARCH_LIBS"
|
||||||
@ -360,10 +360,11 @@ if test "x$LIBTOXCORE_FOUND" = "xno"; then
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
$WINSOCK2_LIBS
|
$WINSOCK2_LIBS
|
||||||
|
$LIBSODIUM_LIBS
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
LDFLAGS="$LDFLAGS $LIBSODIUM_LDFLAGS $LIBSODIUM_LIBS"
|
LDFLAGS="$LDFLAGS $LIBSODIUM_LDFLAGS"
|
||||||
AC_CHECK_LIB([toxcore], [tox_new],
|
AC_CHECK_LIB([toxcore], [tox_new],
|
||||||
[],
|
[],
|
||||||
[
|
[
|
||||||
@ -371,6 +372,7 @@ if test "x$LIBTOXCORE_FOUND" = "xno"; then
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
$WINSOCK2_LIBS
|
$WINSOCK2_LIBS
|
||||||
|
$LIBSODIUM_LIBS
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user