Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#34612 closed enhancement (worksforme)

llvm-3.1 Please add --enable-shared

Reported by: eschnett (Erik Schnetter) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc:
Port: llvm-3.1

Description

I am building pocl <https://launchpad.net/pocl>, an open-source OpenCL compiler built on llvm 3.1. pocl requires configuring llvm with the option --enable-shared, so that llvm can be called as a library from the OpenCL runtime library. In addition, llvm needs to be built with "make REQUIRES_RTTI=1". This is also described in <https://bazaar.launchpad.net/~pocl/pocl/trunk/view/head:/INSTALL>.

I currently have to build llvm and clang myself, adding these options while configuring and building. Could this be made the default? If not, could this be made into a variant?

Change History (3)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to jeremyhu@…

comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

That is how the port already is:

~/src/macports/dports/lang/llvm-3.1 $ grep RTTI Portfile
build.env-append        VERBOSE=1 REQUIRE_RTTI=1
destroot.env-append     VERBOSE=1 REQUIRE_RTTI=1

~/src/macports/dports/lang/llvm-3.1 $ grep shared Portfile
configure.args          --enable-bindings=none --enable-libffi --enable-shared --enable-jit \

comment:3 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

You're probably just not pointing pocl to the right llvm-config. Make sure you do something like:

LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.1
Note: See TracTickets for help on using tickets.