mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add a cross-compile action to AC_RUN_IFELSE
This commit is contained in:
committed by
Nick Mathewson
parent
be080a402f
commit
ef2b7c8a9b
+4
-1
@@ -245,7 +245,10 @@ if test "$cross_compiling" != yes; then
|
|||||||
LDFLAGS="$tor_tryextra $orig_LDFLAGS"
|
LDFLAGS="$tor_tryextra $orig_LDFLAGS"
|
||||||
fi
|
fi
|
||||||
AC_RUN_IFELSE([AC_LANG_PROGRAM([$5], [$6])],
|
AC_RUN_IFELSE([AC_LANG_PROGRAM([$5], [$6])],
|
||||||
[runnable=yes], [runnable=no])
|
[runnable=yes], [runnable=no],
|
||||||
|
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
|
||||||
|
[runnable=yes],
|
||||||
|
[runnable=no])])
|
||||||
if test "$runnable" = yes; then
|
if test "$runnable" = yes; then
|
||||||
tor_cv_library_$1_linker_option=$tor_tryextra
|
tor_cv_library_$1_linker_option=$tor_tryextra
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user