From owner-freebsd-current@FreeBSD.ORG Thu May 12 16:26:59 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1CA1106564A; Thu, 12 May 2011 16:26:59 +0000 (UTC) (envelope-from rakaur@malkier.net) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5AE0F8FC12; Thu, 12 May 2011 16:26:59 +0000 (UTC) Received: by ywf7 with SMTP id 7so735251ywf.13 for ; Thu, 12 May 2011 09:26:58 -0700 (PDT) Received: by 10.236.77.71 with SMTP id c47mr414399yhe.335.1305216148153; Thu, 12 May 2011 09:02:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.98.17 with HTTP; Thu, 12 May 2011 09:02:08 -0700 (PDT) From: Eric Will Date: Thu, 12 May 2011 12:02:08 -0400 Message-ID: To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Thu, 12 May 2011 17:25:05 +0000 Cc: freebsd-toolchain@freebsd.org Subject: llvm port does not allow REQUIRES_RTTI X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2011 16:26:59 -0000 The current Makefile for devel/llvm doesn't allow you to use REQUIRES_RTTI. It's a pretty common option, and is even enabled by default in devel/llvm-devel. I emailed the maintainer months ago and haven't had a response or seen any changes. I've never done anything with ports before, but my best stab at it is below. Thanks, -- Eric Will --- /usr/ports/devel/llvm/Makefile 2011-04-29 11:04:29.000000000 -0400 +++ Makefile 2011-05-12 11:52:59.000000000 -0400 @@ -40,6 +40,7 @@ CONFIGURE_ARGS+= --enable-bindings=none OPTIONS= ASSERTS "Enable assertions (thread unsafe)" off +OPTIONS+= REQUIRES_RTTI "Enable run-time type IDs (RTTI)" on .if defined(NOPORTDOCS) CONFIGURE_ARGS+= --disable-docs @@ -70,6 +71,10 @@ .else CONFIGURE_ARGS+= --disable-assertions .endif +.ifdef(WITH_REQUIRES_RTTI) +CONFIGURE_ENV+=REQUIRES_RTTI=1 +MAKE_ENV+=REQUIRES_RTTI=1 +.endif post-patch: ${REINPLACE_CMD} -e 's|\(PROJ_docsdir.*:=\).*$$|\1${DOCSDIR}|g' \