Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jan 2011 13:59:25 +0000
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        garga@freebsd.org
Cc:        ports@freebsd.org
Subject:   clamav makefile patch
Message-ID:  <20110107135925.GA22055@mech-cluster241.men.bris.ac.uk>

next in thread | raw e-mail | index | archive | help
clamav fails configure on ia64 portscluster because
LLVM is included in default options:

from http://pointyhat.freebsd.org/errorlogs/ia64-errorlogs/e.8.20101230091827/clamav-0.96.5_1.log

configure: error: Failed to configure LLVM, and LLVM was explicitly requested

With this patch it builds fine on my ia64 box.


--- Makefile	2010-12-16 17:43:46.000000000 +0000
+++ Makefile.new	2011-01-07 13:52:26.000000000 +0000
@@ -140,7 +140,7 @@
 CONFIGURE_ARGS+=--without-iconv
 .endif
 
-.if defined(WITH_LLVM) && ${ARCH} != "sparc64"
+.if defined(WITH_LLVM) && ${ARCH} != "sparc64" && ${ARCH} != "ia64"
 CONFIGURE_ARGS+=--enable-llvm
 USE_GMAKE=	yes
 . if defined(WITH_TESTS)


However, LLVM probably doesn't build on PPC either, so
it might be better to use something like

.if defined(WITH_LLVM) && ${ARCH} == "i386" | ${ARCH} == "amd64"

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110107135925.GA22055>