Unbreak autoconf check with clang by not using nested functions
This commit is contained in:
parent
726719ab41
commit
6e45c8442d
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.14 2017/09/23 10:23:48 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.15 2017/09/26 16:21:10 dcoppa Exp $
|
||||
|
||||
COMMENT= file integrity checker
|
||||
|
||||
DISTNAME= integrit-4.1
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
CATEGORIES= security
|
||||
|
||||
HOMEPAGE= http://sourceforge.net/projects/integrit/
|
||||
@ -17,7 +17,8 @@ WANTLIB += c
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=integrit/}
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_STYLE= autoconf
|
||||
AUTOCONF_VERSION= 2.59
|
||||
|
||||
ALL_TARGET= integrit utils
|
||||
|
||||
|
14
security/integrit/patches/patch-configure_in
Normal file
14
security/integrit/patches/patch-configure_in
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-configure_in,v 1.1 2017/09/26 16:21:10 dcoppa Exp $
|
||||
|
||||
Index: configure.in
|
||||
--- configure.in.orig
|
||||
+++ configure.in
|
||||
@@ -78,7 +78,7 @@ dnl At least under OSX static linking cannot be used d
|
||||
AC_MSG_CHECKING([whether static linking is possible])
|
||||
LDFLAGS_ORIG="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS $STATIC"
|
||||
-AC_TRY_LINK(, [int main() { return 0; }], AC_MSG_RESULT(yes),
|
||||
+AC_TRY_LINK(, [], AC_MSG_RESULT(yes),
|
||||
[
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_WARN(integrit will be built without static linking)
|
Loading…
x
Reference in New Issue
Block a user