Date: Thu, 12 May 2011 12:02:08 -0400 From: Eric Will <rakaur@malkier.net> To: freebsd-current@freebsd.org Cc: freebsd-toolchain@freebsd.org Subject: llvm port does not allow REQUIRES_RTTI Message-ID: <BANLkTik5XC4-TRJ%2BiYg7-5-LfQYm4UVTEw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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' \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTik5XC4-TRJ%2BiYg7-5-LfQYm4UVTEw>