termux-packages/packages/srelay/configure.in.patch

22 lines
462 B
Diff

The bypassed test program is confirmed to exit success on device.
--- a/configure.in
+++ b/configure.in
@@ -150,14 +150,14 @@
elif test "$OS" = "SOLARIS"; then
LDFLAGS="$LDFLAGS -lpthread"
fi
- AC_RUN_IFELSE([AC_LANG_SOURCE([
+ AC_LINK_IFELSE([AC_LANG_SOURCE([
[#include <pthread.h>
void
init_routine()
{
return;
}
-main()
+int main()
{
pthread_once_t once_control = PTHREAD_ONCE_INIT;
pthread_once(&once_control, &init_routine);