ngircd: fixed cross build.

This commit is contained in:
Juan RP 2014-06-09 08:24:44 +02:00
parent 71df26a3bf
commit 37c4ad4c61
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- configure.orig 2014-06-09 08:20:00.584285131 +0200
+++ configure 2014-06-09 08:20:14.000360141 +0200
@@ -6019,7 +6019,7 @@ _ACEOF
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getaddrinfo() works" >&5
$as_echo_n "checking whether getaddrinfo() works... " >&6; }
- if test "$cross_compiling" = yes; then :
+ if false; then :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling

View File

@ -28,6 +28,9 @@ else
configure_args+=" --without-openssl"
fi
post_configure() {
echo "#define HAVE_WORKING_GETADDRINFO 1" >>src/config.h
}
post_install() {
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
}